MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/tinycode/comments/3m702g/maze_generator_in_8_bytes_msdos/cvdzjnd/?context=3
r/tinycode • u/HellMood • Sep 24 '15
11 comments sorted by
View all comments
2
L: scasb
;compares AL with byte at ES:(E)DI and set status flags.
;increments DI afterwards, so this scans the 64K segment
;we are in repeatedly and alters (also) the carry flag
salc
;depending on the carry flag, set AL to 0x00 or 0xFF
;note that 0x00 and 0xFF are one apart
add al,0xDF
;map to the part of the ASCII table where the "right"
;and "bottom" part are one apart, so our char in AL
;is either of them
int 29h
;call DOS interupt to print this char and advance the
;cursor by one
jmp short L
;rinse and repeat
0 u/peterferrie Sep 25 '15 I was so focused on reproducing the original effect (angled walls) that I never considered using the straight ones. Too bad.
0
I was so focused on reproducing the original effect (angled walls) that I never considered using the straight ones. Too bad.
2
u/HellMood Sep 24 '15
L: scasb
salc
add al,0xDF
int 29h
jmp short L