As a boredom-killer for when I'm out of town and unable to use my game dev machine, I have taken up the clumsy art and exact science that is assembly code. Toying around with the x86 instruction set at the moment, and I just wrote my first real piece of code:
org 100h
; set screen to 80x23 chars, 16 colors
mov al,3
int 10h
; enable all 16 colors
mov bx,0
int 10h
; set the segment register
mov ax,0b800h
mov ds,ax
; print the characters
; every other byte is used because
; the first byte assigned is the ascii character
mov [02h], 'H'
mov [04h], 'e'
mov [06h], 'l'
mov [08h], 'l'
mov [0ah], 'o'
mov [0ch], ','
mov [0eh], ' '
mov [10h], 'W'
mov [12h], 'o'
mov [14h], 'r'
mov [16h], 'l'
mov [18h], 'd'
; Functionally the same as "press any key to continue"
mov ah,0
int 16h
ret
Now, none of this is really all that difficult--it's the protected mode stuff that really is a mind-rape to me. Where would you guys recommend I look to to leran more?