-
Notifications
You must be signed in to change notification settings - Fork 1
Function C1 159D
Clément Gallet edited this page Mar 23, 2015
·
1 revision
- Middle of function initializing the enemies position and size in battle, apparently
- Does not break the stack
$C1/159D 0A ASL A
$C1/159E 0A ASL A
$C1/159F 85 10 STA $10 [$00:1310]
$C1/15A1 AD 00 81 LDA $8100 [$00:8100]
$C1/15A4 0A ASL A
$C1/15A5 0A ASL A
$C1/15A6 0A ASL A
$C1/15A7 85 12 STA $12 [$00:1312]
$C1/15A9 A9 80 LDA #$80
$C1/15AB 38 SEC
$C1/15AC E5 12 SBC $12 [$00:1312]
$C1/15AE AA TAX
$C1/15AF 8E 9F 80 STX $809F [$00:809F]
$C1/15B2 AD 01 20 LDA $2001 [$00:2001]
$C1/15B5 AA TAX
$C1/15B6 BF 00 E8 EC LDA $ECE800,x[$EC:E804]
$C1/15BA D0 05 BNE $05 [$15C1]
$C1/15BC 9C 9F 80 STZ $809F [$00:809F]
$C1/15BF 80 0D BRA $0D [$15CE]
$C1/15C1 3A DEC A
$C1/15C2 AA TAX
$C1/15C3 AD 9F 80 LDA $809F [$00:809F]
$C1/15C6 18 CLC
$C1/15C7 7F 5C 15 C1 ADC $C1155C,x[$C1:1560]
$C1/15CB 8D 9F 80 STA $809F [$00:809F]
$C1/15CE A9 80 LDA #$80
$C1/15D0 38 SEC
$C1/15D1 E5 10 SBC $10 [$00:1310]
$C1/15D3 4A LSR A
$C1/15D4 18 CLC
$C1/15D5 69 18 ADC #$18
$C1/15D7 AA TAX
$C1/15D8 8E 93 80 STX $8093 [$00:8093]
$C1/15DB 60 RTS