We have a Steam curator now. You should be following it. https://store.steampowered.com/curator/44994899-RPGHQ/
Programming General
-
asf
- Turtle

- Posts: 3252
- Joined: Feb 2, '23
- Gender: Helicopter
-
Geolocation
-
rusty_shackleford
- Site Admin
- Posts: 52863
- Joined: Feb 2, '23
- Gender: Watermelon
-
Geolocation
Adventurer's Guild
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
-
rusty_shackleford
- Site Admin
- Posts: 52863
- Joined: Feb 2, '23
- Gender: Watermelon
-
Geolocation
Adventurer's Guild
It's a shame Ultima Underworld code was never released, a lot of people aren't aware that UU was in fact far more advanced than Wolf3D/DOOM, it was way ahead of its time. Full texture-mapped polygons in 3D space, not raycasting + lotsa hacks.
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
-
asf
- Turtle

- Posts: 3252
- Joined: Feb 2, '23
- Gender: Helicopter
-
Geolocation
birthright source is available and an interesting spelunking for those interested in 3d renderers evolution
-
rusty_shackleford
- Site Admin
- Posts: 52863
- Joined: Feb 2, '23
- Gender: Watermelon
-
Geolocation
Adventurer's Guild
segmented memory sucks
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
-
Tweed
- Turtle

- Posts: 8038
- Joined: Feb 2, '23
-
Geolocation
Adventurer's Guild
"By MIT students for MIT students."rusty_shackleford wrote: ↑ November 2nd, 2025, 11:28It's a shame Ultima Underworld code was never released, a lot of people aren't aware that UU was in fact far more advanced than Wolf3D/DOOM, it was way ahead of its time. Full texture-mapped polygons in 3D space, not raycasting + lotsa hacks.
Although that quote was from criticism for Thief, them Looking Glass boys were a sharp bunch.
-
rusty_shackleford
- Site Admin
- Posts: 52863
- Joined: Feb 2, '23
- Gender: Watermelon
-
Geolocation
Adventurer's Guild
32bit division on a motorola 68000
commented:
Code: Select all
move.l D2,-(SP)=>local_4
swap D1
move.w D1w,D2w
bne.w LAB_0022e15c
swap D0
swap D1
swap D2
move.w D0w,D2w
beq.w LAB_0022e14c
divu.w D1w,D2
move.w D2w,D0w
swap D0
move.w D0w,D2w
divu.w D1w,D2
move.w D2w,D0w
swap D2
move.w D2w,D1w
move.l (SP)+,D2
rts
move.l D3,-(SP)=>local_8
moveq #0x10,D3
cmpi.w #0x80,D1w
bcc.w LAB_0022e16c
rol.l #0x8,D1
subq.w #0x8,D3w
cmpi.w #0x800,D1w
bcc.w LAB_0022e178
rol.l #0x4,D1
subq.w #0x4,D3w
cmpi.w #0x2000,D1w
bcc.w LAB_0022e184
rol.l #0x2,D1
subq.w #0x2,D3w
tst.w D1w
bmi.w LAB_0022e18e
rol.l #0x1,D1
subq.w #0x1,D3w
move.w D0w,D2w
lsr.l D3,D0
swap D2
clr.w D2w
lsr.l D3,D2
swap D3
divu.w D1w,D0
move.w D0w,D3w
move.w D2w,D0w
move.w D3w,D2w
swap D1
mulu.w D1w,D2
sub.l D2,D0
bcc.w LAB_0022e1b2
subq.w #0x1,D3w
add.l D1,D0
bcc.b LAB_0022e1b0
moveq #0x0,D1
move.w D3w,D1w
swap D3
rol.l D3,D0
swap D0
exg D0,D1
move.l (SP)+,D3
move.l (SP)+,D2
rts
Code: Select all
;==============================================================================
; 32-bit Unsigned Division Routine for 68000
; Divides D0 by D1, returns quotient in D0 and remainder in D1
; Preserves: A0-A6
; Modifies: D0, D1
; Uses: D2, D3 (saved/restored)
;==============================================================================
udiv32:
move.l D2,-(SP) ; Save D2
swap D1 ; Get high word of divisor
move.w D1,D2 ; Check if high word is zero
bne.w divisor_has_high_word
;--------------------------------------------------------------------------
; Fast path: Divisor fits in 16 bits (high word is zero)
;--------------------------------------------------------------------------
swap D0 ; Get high word of dividend
swap D1 ; Restore divisor to low word
swap D2 ; Clear D2
move.w D0,D2 ; D2 = high word of dividend
beq.w divide_low_word_only ; If zero, only divide low word
divu.w D1,D2 ; Divide high word
move.w D2,D0 ; Store quotient high word
divide_low_word_only:
swap D0 ; Get low word of dividend
move.w D0,D2 ; D2 = low word with remainder
divu.w D1,D2 ; Divide low word
move.w D2,D0 ; Store quotient low word
swap D2 ; Get remainder
move.w D2,D1 ; Return remainder in D1
move.l (SP)+,D2 ; Restore D2
rts
;--------------------------------------------------------------------------
; Slow path: Divisor uses full 32 bits (high word non-zero)
; Normalize divisor and use shift-subtract algorithm
;--------------------------------------------------------------------------
divisor_has_high_word:
move.l D3,-(SP) ; Save D3
moveq #16,D3 ; D3 = shift count (start at 16)
; Normalize divisor to have MSB set (determines shift count)
cmpi.w #0x80,D1 ; Check if byte normalize needed
bcc.w check_nibble
rol.l #8,D1 ; Shift left 8 bits
subq.w #8,D3 ; Adjust shift count
check_nibble:
cmpi.w #0x800,D1 ; Check if 4-bit normalize needed
bcc.w check_2bit
rol.l #4,D1 ; Shift left 4 bits
subq.w #4,D3 ; Adjust shift count
check_2bit:
cmpi.w #0x2000,D1 ; Check if 2-bit normalize needed
bcc.w check_1bit
rol.l #2,D1 ; Shift left 2 bits
subq.w #2,D3 ; Adjust shift count
check_1bit:
tst.w D1 ; Check if 1-bit normalize needed
bmi.w normalized
rol.l #1,D1 ; Shift left 1 bit
subq.w #1,D3 ; Adjust shift count
normalized:
; Shift dividend by same amount as divisor was shifted
move.w D0,D2 ; Copy low word of dividend
lsr.l D3,D0 ; Shift dividend high
swap D2 ; Prepare low word
clr.w D2 ; Clear unwanted bits
lsr.l D3,D2 ; Align low word bits
; Perform division using normalized values
swap D3 ; Save shift count
divu.w D1,D0 ; Divide high part
move.w D0,D3 ; Save quotient high
move.w D2,D0 ; Get low dividend bits
move.w D3,D2 ; Restore quotient
swap D1 ; Get original divisor low word
mulu.w D1,D2 ; Multiply back for remainder calc
sub.l D2,D0 ; Calculate remainder
bcc.w quotient_correct
; Quotient was too large, adjust
subq.w #1,D3 ; Decrement quotient
add.l D1,D0 ; Adjust remainder
bcc.b quotient_adjusted
quotient_adjusted:
quotient_correct:
; Prepare return values
moveq #0,D1 ; Clear D1
move.w D3,D1 ; D1 = quotient
swap D3 ; Get shift count back
rol.l D3,D0 ; Denormalize remainder
swap D0 ; Swap remainder to proper position
exg D0,D1 ; D0 = quotient, D1 = remainder
move.l (SP)+,D3 ; Restore D3
move.l (SP)+,D2 ; Restore D2
rts
Last edited by rusty_shackleford on November 14th, 2025, 05:28, edited 1 time in total.
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
-
rusty_shackleford
- Site Admin
- Posts: 52863
- Joined: Feb 2, '23
- Gender: Watermelon
-
Geolocation
Adventurer's Guild
I will post the modulo tomorrow!
[edit]
It's tomorrow already
commented:
[edit]
It's tomorrow already
Code: Select all
tst.l D0
bpl.w LAB_0022e122
neg.l D0
tst.l D1
bpl.w LAB_0022e118
neg.l D1
bsr.w Math::Divide_U32
neg.l D1
rts
bsr.w Math::Divide_U32
neg.l D0
neg.l D1
rts
tst.l D1
bpl.w Math::Divide_U32
neg.l D1
bsr.w Math::Divide_U32
neg.l D0
rts
Code: Select all
;==============================================================================
; 32-bit Signed Division Routine for 68000
; Divides D0 by D1, returns quotient in D0 and remainder in D1
;
; Handles sign cases by:
; - Converting operands to absolute values
; - Calling unsigned division
; - Adjusting result signs per standard division rules:
; * Quotient is negative if operand signs differ
; * Remainder takes the sign of the dividend
;
; Input: D0.l = signed dividend
; D1.l = signed divisor
; Output: D0.l = signed quotient
; D1.l = signed remainder
;==============================================================================
sdiv32:
tst.l D0 ; Test dividend sign
bpl.w dividend_positive
;--------------------------------------------------------------------------
; Dividend is negative
;--------------------------------------------------------------------------
neg.l D0 ; Make dividend positive
tst.l D1 ; Test divisor sign
bpl.w dividend_neg_divisor_pos
; Both negative: quotient positive, remainder negative
neg.l D1 ; Make divisor positive
bsr.w Math::Divide_U32 ; Perform unsigned division
neg.l D1 ; Negate remainder (sign of dividend)
rts
dividend_neg_divisor_pos:
; Dividend negative, divisor positive: quotient negative, remainder negative
bsr.w Math::Divide_U32 ; Perform unsigned division
neg.l D0 ; Negate quotient (signs differ)
neg.l D1 ; Negate remainder (sign of dividend)
rts
;--------------------------------------------------------------------------
; Dividend is positive
;--------------------------------------------------------------------------
dividend_positive:
tst.l D1 ; Test divisor sign
bpl.w Math::Divide_U32 ; Both positive: tail call to unsigned div
; Dividend positive, divisor negative: quotient negative, remainder positive
neg.l D1 ; Make divisor positive
bsr.w Math::Divide_U32 ; Perform unsigned division
neg.l D0 ; Negate quotient (signs differ)
rts ; Remainder stays positive (sign of dividend)
Last edited by rusty_shackleford on November 14th, 2025, 05:31, edited 2 times in total.
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
-
rusty_shackleford
- Site Admin
- Posts: 52863
- Joined: Feb 2, '23
- Gender: Watermelon
-
Geolocation
Adventurer's Guild
Rustroons took down half the internet
https://archive.is/ft5aD
Guess it makes sense that rustroons would rather kill themselves than deal with problems!
https://archive.is/ft5aD
Guess it makes sense that rustroons would rather kill themselves than deal with problems!
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
-
rusty_shackleford
- Site Admin
- Posts: 52863
- Joined: Feb 2, '23
- Gender: Watermelon
-
Geolocation
Adventurer's Guild
Normal managed program: hmmmmmmmmm I don't know how to handle this issue so I will throw an exception and make sure to let everyone know I can do it!
Rustroon """" memory safe """" program: UH OH I GOT PASSED A NULL VALUE OH NO OH NO AHHH I'M GOING TO KILL MYSELF!!!!!
Rustroon """" memory safe """" program: UH OH I GOT PASSED A NULL VALUE OH NO OH NO AHHH I'M GOING TO KILL MYSELF!!!!!
Last edited by rusty_shackleford on November 19th, 2025, 22:23, edited 1 time in total.
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
-
rusty_shackleford
- Site Admin
- Posts: 52863
- Joined: Feb 2, '23
- Gender: Watermelon
-
Geolocation
Adventurer's Guild
I have clod code setup to do code reviews, it's pretty effective. Just ask it to create a slash command to perform as a thorough reviewer(add whatever details you feel are warranted) on files staged to be committed, catches a lot of things.
Thank you for your attention to this matter!
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
Steam friend code: 40552640 https://steamcommunity.com/friends/add | email: [email protected] | Questions or problems? PM me. I reply quickly.
Rusty's Stuff Collection
-
Magick
- Posts: 4200
- Joined: Jan 29, '24
- Location: USA
- Gender: Potato
-
Geolocation
Adventurer's Guild
Last edited by Magick on February 19th, 2026, 21:10, edited 1 time in total.
-
DecadeRiptide
- Posts: 3342
- Joined: Jul 17, '25
- Location: Away from you
- Gender: Dinosaur
-
Geolocation
Try sublime textrusty_shackleford wrote: ↑ April 18th, 2025, 17:09Guess it's time to start moving to VSCode, jetbrains tools are surprisingly lagging really hard now.
ˎˊ˗╰┈➤ [ruby][/ruby]
ँ़── .✦.𖥔 ݁ ˖
ँ़── .✦.𖥔 ݁ ˖
ँ़── ✡︎ ݁ ˖
logincrash wrote:I genuinely hope you die a painful death. The sooner you are killed, the better.
.𖥔 ݁ ˖ThulsaDoomer wrote:Please visit a scenic bridge and plummet into its pristine waters. In fact, I'm not requesting, just do it.
-
The_Mask
- Posts: 3962
- Joined: Feb 6, '23
- Location: The land of ice and snow
-
Geolocation
Adventurer's Guild
I like redheads more, but she's cute. If I didn't have a woman, I'd chat her up to see what she's about, sure.BobT wrote: ↑ February 19th, 2026, 07:52https://www.youtube.com/@lauriewired/videos
@The_Mask rating?
Just like Yves, I chase tales
rusty_shackleford wrote: ↑ October 28th, 2024, 07:36Mediocre or bad games can still have parts that are good.
-
Xenich
- Posts: 5270
- Joined: Feb 24, '24
-
Geolocation
CS degrees changed dramatically after the 90's. Early 00's they started heavily shifting the requirements for CS degrees. A CS degree used to be the same as CS Engineer degrees, but without most of the Engineer courses which meant you still got all of the heavy math/physics courses as well as the key hardware infrastructure courses. It used to be a single degree split between those two focuses, which meant a CS grad was "capable" (if they were diligent in their studies) in writing an OS and compiler right out of college. They could handle extremely complex concepts right down to the hardware.
Eventually, the courses shifted where math/physics requirements were cut way back, the core engineer programing courses removed and they began to resemble business degrees with some general programming classes.