Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,563,842
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 05-09-24 12:17 AM
Guest: Register | Login

0 users currently in Super Mario RPG Hacking | 2 guests

Main - Super Mario RPG Hacking - What do these mean on the right side??? New thread | New reply


Darkkefka
Posted on 05-26-14 11:44 PM (rev. 3 of 05-26-14 11:49 PM) Link | Quote | ID: 156637


Red Koopa
Level: 26

Posts: 111/123
EXP: 94295
Next: 7980

Since: 04-09-11

Last post: 3135 days
Last view: 3303 days
mortal infliction (modified damage: 41)
-----------------
C2/CA23 A9 0F 27 LDA #$270F A:0480 X:FB00 Y:2600 ;load 9999 constant
C2/CA26 DF 45 00 7E CMP $7E0045,x[$7E:FB45] A:270F X:FB00 Y:2600 ;compare to numeral displayC2/CA2A D0 07 BNE $07 [$CA33] A:270F X:FB00 Y:2600 ;branch if not 9999 damage

C2/CA2C 85 C2 STA $C2 ;store 9999 to modified damage
C2/CA2E A9 01 00 LDA #$0001 ;load 1
C2/CA31 80 0C BRA $0C [$CA3F] ;always branch

C2/CA33 BF 35 00 7E LDA $7E0035,x[$7E:FB35] A:270F X:FB00 Y:2600
C2/CA37 38 SEC A:0004 X:FB00 Y:2600
C2/CA38 E5 C2 SBC $C2 [$00:00C2] A:0004 X:FB00 Y:2600 ;subtract modified damage
C2/CA3A 10 03 BPL $03 [$CA3F] A:FFDB X:FB00 Y:2600 ;branch if greater than/equal to 0
C2/CA3C A9 00 00 LDA #$0000 A:FFDB X:FB00 Y:2600 ;load 0
C2/CA3F 9F 11 00 7E STA $7E0011,x[$7E:FB11] A:0000 X:FB00 Y:2600 ;store to current HP
C2/CA43 F0 27 BEQ $27 [$CA6C] A:0000 X:FB00 Y:2600 ;branch if current HP at 0


C2/CA6C A5 C2 LDA $C2 [$00:00C2] A:0000 X:FB00 Y:2600 ;load modified damage
C2/CA6E 9F 45 00 7E STA $7E0045,x[$7E:FB45] A:0029 X:FB00 Y:2600 ;store to numeral display address
C2/CA72 60 RTS A:0029 X:FB00 Y:2600 ;end




It says that this will modify to mortal hit to 41...but don't where it's changing it to 41. All I see is the two 29s on the bottom..which is something I don't have in my editor. Do I need a special enchanced Hex editor tool? I use Translhextion.

Main - Super Mario RPG Hacking - What do these mean on the right side??? New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.019 seconds. (339KB of memory used)
MySQL - queries: 37, rows: 57/58, time: 0.016 seconds.