FD50: test RAM and find RAM end
FD50 |
A9 00 |
LDA #$00 |
FD52 |
A8 |
TAY |
FD53 |
99 02 00 |
STA $0002,Y |
FD56 |
99 00 02 |
STA $0200,Y |
FD59 |
99 00 03 |
STA $0300,Y |
FD5C |
C8 |
INY |
FD5D |
D0 F4 |
BNE $FD53 |
FD5F |
A2 3C |
LDX #$3C |
FD61 |
A0 03 |
LDY #$03 |
FD63 |
86 B2 |
STX $B2 |
FD65 |
84 B3 |
STY $B3 |
FD67 |
A8 |
TAY |
FD68 |
A9 03 |
LDA #$03 |
FD6A |
85 C2 |
STA $C2 |
FD6C |
E6 C2 |
INC $C2 |
FD6E |
B1 C1 |
LDA ($C1),Y |
FD70 |
AA |
TAX |
FD71 |
A9 55 |
LDA #$55 |
FD73 |
91 C1 |
STA ($C1),Y |
FD75 |
D1 C1 |
CMP ($C1),Y |
FD77 |
D0 0F |
BNE $FD88 |
FD79 |
2A |
ROL A |
FD7A |
91 C1 |
STA ($C1),Y |
FD7C |
D1 C1 |
CMP ($C1),Y |
FD7E |
D0 08 |
BNE $FD88 |
FD80 |
8A |
TXA |
FD81 |
91 C1 |
STA ($C1),Y |
FD83 |
C8 |
INY |
FD84 |
D0 E8 |
BNE $FD6E |
FD86 |
F0 E4 |
BEQ $FD6C |
FD88 |
98 |
TYA |
FD89 |
AA |
TAX |
FD8A |
A4 C2 |
LDY $C2 |
FD8C |
18 |
CLC |
FD8D |
20 2D FE |
JSR $FE2D |
FD90 |
A9 08 |
LDA #$08 |
FD92 |
8D 82 02 |
STA $0282 |
FD95 |
A9 04 |
LDA #$04 |
FD97 |
8D 88 02 |
STA $0288 |
FD9A |
60 |
RTS |