Mother2GbaTranslation/m2-status-switch.asm

228 lines
3.1 KiB
NASM
Raw Normal View History

2017-03-14 04:06:36 +00:00
// Level
2017-03-29 05:19:51 +01:00
.org 0x80C1392
mov r0,5
mov r1,1
mov r2,3
bl print_blankstr
mov r3,6
2017-03-14 04:06:36 +00:00
mul r3,r4
2017-03-29 05:19:51 +01:00
mov r2,56
2017-03-14 04:06:36 +00:00
sub r2,r2,r3
2017-03-29 05:19:51 +01:00
.org 0x80C13AA
mov r3,8
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Max HP
2017-03-29 05:19:51 +01:00
.org 0x80C13EC
mov r0,0x10
mov r1,7
mov r2,3
bl print_blankstr
mov r3,6
2017-03-17 05:23:29 +00:00
mul r4,r3
2017-03-29 05:19:51 +01:00
mov r3,147
2017-03-17 05:23:29 +00:00
sub r4,r3,r4
2017-03-14 04:06:36 +00:00
2017-03-29 05:19:51 +01:00
.org 0x80C1406
mov r3,56
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Current HP
2017-03-29 05:19:51 +01:00
.org 0x80C1448
mov r0,0xC
mov r1,7
mov r2,3
bl print_blankstr
mov r3,6
2017-03-17 05:23:29 +00:00
mul r4,r3
2017-03-29 05:19:51 +01:00
mov r3,120
2017-03-17 05:23:29 +00:00
sub r4,r3,r4
2017-03-14 04:06:36 +00:00
2017-03-29 05:19:51 +01:00
.org 0x80C1462
mov r3,56
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Max PP
2017-03-29 05:19:51 +01:00
.org 0x80C14A4
mov r0,0x10
mov r1,9
mov r2,3
bl print_blankstr
mov r0,6
2017-03-14 04:06:36 +00:00
mul r4,r0
2017-03-29 05:19:51 +01:00
mov r0,147
2017-03-14 04:06:36 +00:00
sub r4,r0,r4
2017-03-29 05:19:51 +01:00
.org 0x80C14BE
mov r3,72
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Current PP
2017-03-29 05:19:51 +01:00
.org 0x80C1500
mov r0,0xC
mov r1,9
mov r2,3
bl print_blankstr
mov r3,6
2017-03-17 05:23:29 +00:00
mul r4,r3
2017-03-29 05:19:51 +01:00
mov r3,120
2017-03-14 04:06:36 +00:00
2017-03-29 05:19:51 +01:00
.org 0x80C1516
2017-03-17 05:23:29 +00:00
sub r2,r3,r4
2017-03-29 05:19:51 +01:00
mov r3,72
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Total exp
2017-03-29 05:19:51 +01:00
.org 0x80C1560
mov r0,0xC
mov r1,0xB
mov r2,7
bl print_blankstr
mov r1,6
2017-03-14 04:06:36 +00:00
mul r4,r1
2017-03-29 05:19:51 +01:00
mov r1,147
2017-03-14 04:06:36 +00:00
sub r4,r1,r4
2017-03-29 05:19:51 +01:00
.org 0x80C157A
mov r3,88
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Exp to next level
2017-03-29 05:19:51 +01:00
.org 0x80C15E2
mov r0,2
mov r1,0xD
mov r2,6
bl print_blankstr
mov r0,6
2017-03-17 05:23:29 +00:00
mul r4,r0
2017-03-29 05:19:51 +01:00
mov r0,61
2017-03-17 05:23:29 +00:00
sub r4,r0,r4
2017-03-14 04:06:36 +00:00
2017-03-29 05:19:51 +01:00
.org 0x80C15FC
mov r3,104
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
2017-03-29 05:19:51 +01:00
.org 0x80C1624
mov r0,2
mov r1,0xD
mov r2,6
bl print_blankstr
2017-03-14 04:06:36 +00:00
// Offense
2017-03-29 05:19:51 +01:00
.org 0x80C1672
mov r0,0x19
mov r1,1
mov r2,4
bl print_blankstr
mov r6,6
2017-03-14 04:06:36 +00:00
mul r4,r6
2017-03-29 05:19:51 +01:00
mov r6,225
2017-03-14 04:06:36 +00:00
sub r4,r6,r4
2017-03-29 05:19:51 +01:00
.org 0x80C168C
mov r3,8
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Defense
2017-03-29 05:19:51 +01:00
.org 0x80C16CC
mov r0,0x19
mov r1,3
mov r2,4
bl print_blankstr
mov r2,6
2017-03-14 04:06:36 +00:00
mul r4,r2
sub r4,r6,r4
2017-03-29 05:19:51 +01:00
.org 0x80C16E4
mov r3,24
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Speed
2017-03-29 05:19:51 +01:00
.org 0x80C1724
mov r0,0x19
mov r1,5
mov r2,4
bl print_blankstr
mov r2,6
2017-03-14 04:06:36 +00:00
mul r4,r2
sub r4,r6,r4
2017-03-29 05:19:51 +01:00
.org 0x80C173C
mov r3,40
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Guts
2017-03-29 05:19:51 +01:00
.org 0x80C177C
mov r0,0x19
mov r1,7
mov r2,4
bl print_blankstr
mov r2,6
2017-03-14 04:06:36 +00:00
mul r4,r2
sub r4,r6,r4
2017-03-29 05:19:51 +01:00
.org 0x80C1794
mov r3,56
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Vitality
2017-03-29 05:19:51 +01:00
.org 0x80C17D4
mov r0,0x19
mov r1,9
mov r2,4
bl print_blankstr
mov r2,6
2017-03-14 04:06:36 +00:00
mul r4,r2
sub r4,r6,r4
2017-03-29 05:19:51 +01:00
.org 0x80C17EC
mov r3,72
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// IQ
2017-03-29 05:19:51 +01:00
.org 0x80C182C
mov r0,0x19
mov r1,0xB
mov r2,4
bl print_blankstr
mov r2,6
2017-03-14 04:06:36 +00:00
mul r4,r2
sub r4,r6,r4
2017-03-29 05:19:51 +01:00
.org 0x80C1844
mov r3,88
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Luck
2017-03-29 05:19:51 +01:00
.org 0x80C1884
mov r0,0x19
mov r1,0xD
mov r2,4
bl print_blankstr
mov r2,6
2017-03-14 04:06:36 +00:00
mul r4,r2
sub r6,r6,r4
2017-03-29 05:19:51 +01:00
.org 0x80C189C
mov r3,104
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Press A for PSI info
2017-03-29 05:19:51 +01:00
.org 0x80C18AC
bl c0a5c_psi_info_blank
b 0x80C18E2
2017-03-14 04:06:36 +00:00
2017-03-29 05:19:51 +01:00
.org 0x80C18DA
mov r2,44
mov r3,120
bl c0a5c_printstr
2017-03-14 04:06:36 +00:00
// Ailment
2017-03-29 05:19:51 +01:00
.org 0x80C18E2
mov r0,1
mov r1,3
mov r2,10
bl print_blankstr
b 0x80C18FA