; MegaMan Battle Network 3 White: Giving Flashman More Chips ; Makes flashman use different chips depending on the scenario. ; By Mgamerz ; Made for ARMIPS assembler v0.7c input equ input.gba ; Put the name of your ROM here fspace equ 0x7FE36C ; Put the ROM free space offset here .gba .open input,output.gba,8000000h .org fspace+8000000h .align 2 pickNextChip: ;Selectable chips: ; PanlGrab ; Team2 ; Discord ; SandStage ;r0 level ;r1 sublevel ;r3 damage loadSandStage: mov r0,=0x04 ;family mov r1,=0x04 ;sublevel ldrb r2,[r5,16h] ; ...something mov r3, 0h ;damage blt return loadPanlGrab: mov r0,=0x00 ;family mov r1,=0x00 ;sublevel ldrb r2,[r5,16h] ; ...something mov r3, 0ah ; 10 damage blt return loadTeam2: mov r0,=26h ;family mov r1,=1h ;sublevel ldrb r2,[r5,16h] ; ...something mov r3, 0h ;damage blt return loadDiscord: mov r0,=3Fh ;family mov r1,=1h ;sublevel ldrb r2,[r5,16h] ; ...something mov r3, 0ah ;damage blt return return: ldr r6,=80B672Eh bx r6 .align 4 .pool ;Flashmans final code, which should fit 2 halfword instructions when overwriting .org 080B672Ah repointFlashmanChipPickRoutine: ldr r6,=pickNextChip|1b bx r6 .align 4 .pool .close ; eof