Startup code

33204: The game has loaded...


Jump here from the load routine at 32815

33204 31FE5C LD SP,23806 Put the stack somewhere safe
33207 FB EI Enable interrupts
33208 210040 LD HL,16384 Copy the top character line of the display area (8x32 bytes) to the third character line from the bottom
33211 11A050 LD DE,20640
33214 CDE550 CALL 20709
33217 26B7 LD H,183 Fill in the second character line from the bottom with the necessary code
33219 11C050 LD DE,20672
33222 CDE550 CALL 20709
33225 11005D LD DE,23808
33228 CDF254 CALL 21746 Prepare 23808 to 24063
33231 CDF254 CALL 21746 Prepare 24064 to 24319
33234 CDF254 CALL 21746 Prepare 24320 to 24575
33237 110080 LD DE,32768 Copy 256 bytes from 58112 to 32768
33240 010001 LD BC,256
33243 2100E3 LD HL,58112
33246 EDB0 LDIR
33248 2661 LD H,97 Move 7936 bytes from 24832 down to 24576
33250 1660 LD D,96
33252 061F LD B,31
33254 EDB0 LDIR
33256 06FC LD B,252 Zero out addresses 32512 to 32763
33258 12 LD (DE),A
33259 1C INC E
33260 10FC DJNZ 33258
33262 110081 LD DE,33024
33265 21005B LD HL,23296
33268 04 INC B
33269 C3A055 JP 21920