FE46: Main loader (1)
FE46 |
LD IX,$4000 |
FE4A |
LD DE,$BF25 |
FE4D |
LD A,$16 |
FE4F |
LD ($FEAA),A |
FE52 |
LD A,$FF |
FE54 |
SCF |
FE55 |
INC D |
FE56 |
EX AF,AF' |
FE57 |
DEC D |
FE58 |
LD A,$0F |
FE5A |
OUT ($FE),A |
FE5C |
IN A,($FE) |
FE5E |
RRA |
FE5F |
AND $20 |
FE61 |
OR $02 |
FE63 |
LD C,A |
FE64 |
CP A |
FE65 |
CALL $FEA9 |
FE68 |
JR NC,$FE65 |
FE6A |
LD HL,$0415 |
FE6D |
DJNZ $FE6D |
FE6F |
DEC HL |
FE70 |
LD A,H |
FE71 |
OR L |
FE72 |
JR NZ,$FE6D |
FE74 |
CALL $FEA5 |
FE77 |
JR NC,$FE65 |
FE79 |
LD B,$9C |
FE7B |
CALL $FEA5 |
FE7E |
JR NC,$FE65 |
FE80 |
LD A,$C6 |
FE82 |
CP B |
FE83 |
JR NC,$FE65 |
FE85 |
INC H |
FE86 |
JR NZ,$FE79 |
FE88 |
LD B,$C9 |
FE8A |
CALL $FEA9 |
FE8D |
JR NC,$FE65 |
FE8F |
LD A,B |
FE90 |
CP $D4 |
FE92 |
JR NC,$FE88 |
FE94 |
CALL $FEA9 |
FE97 |
JP NC,$0000 |
FE9A |
LD A,$08 |
FE9C |
LD ($FEAA),A |
FE9F |
LD H,$00 |
FEA1 |
LD B,$B0 |
FEA3 |
JR $FEDE |