User:TimoVM/RAM Writer setups: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
Line 1,332: Line 1,332:
CD 1A 31 call CopyBytes ; install TM33 bootstrap to D418
CD 1A 31 call CopyBytes ; install TM33 bootstrap to D418
3E E1 ld a, E1
3E E1 ld a, E1
EA B8 D5 ld (D5B8), a ; change item slot #1 to TM33
EA B8 D5 ld (D5B8), a ; change item slot #1 to TM33
C9 ret ; due to earlier push, jump to Deployer
C9 ret ; due to earlier push, jump to Deployer


RAM writer A
RAM writer A
Line 1,381: Line 1,381:
CD 4C C7 call .firstHex
CD 4C C7 call .firstHex
F1 pop af
F1 pop af
.firstHex CC6C
.firstHex CC6C
E6 0F and 0F
E6 0F and 0F
C6 F6 add a, F6
C6 F6 add a, F6
Line 1,387: Line 1,387:
22 ldi (hl), a
22 ldi (hl), a
C9 ret
C9 ret
sampleDpad CC74
sampleDpad CC74
CD 90 37 call JoyTextDelay_ForcehJoyDown
CD 90 37 call JoyTextDelay_ForcehJoyDown
F0 AB ldh a, (AB)
F0 AB ldh a, (AB)
Line 1,426: Line 1,426:
E0 FE ldh (FE), a
E0 FE ldh (FE), a
C9 ret
C9 ret
.noSelectButton 41 37 79
.noSelectButton
07 rlca
07 rlca
30 03 jr nc, .noBButton
30 03 jr nc, .noBButton
Line 1,471: Line 1,471:
FA AB CE ld a, (CEAB)
FA AB CE ld a, (CEAB)
FE E1 cp E1
FE E1 cp E1
C0 ret nz ; is current selected item TM33? If yes, continue
C0 ret nz ; is current selected item TM33? If yes, continue
FA C2 CE ld a, (CEC2)
FA C2 CE ld a, (CEC2)
FE 90 cp 90
FE 90 cp 90
C0 ret nz ; Is TM33 chosen while in battle? If yes, continue
C0 ret nz ; Is TM33 chosen while in battle? If yes, continue
3E 0D ld a, 0D
3E 0D ld a, 0D
EA E0 CE ld (CEE0); a ; Force cursor to position #13, enabling use of TM33
EA E0 CE ld (CEE0); a ; Force cursor to position #13, enabling use of TM33
Line 1,480: Line 1,480:


OAM DMA Hijack B
OAM DMA Hijack B
C3 01 DF jp DF01 ; jump to OAM DMA hijack B
C3 01 DF jp DF01 ; jump to OAM DMA hijack B


Deployer located at D418
Deployer located at D418