diff options
Diffstat (limited to 'asm')
-rw-r--r-- | asm/rom5.s | 105 | ||||
-rw-r--r-- | asm/rom_803D1FC.s | 57 | ||||
-rw-r--r-- | asm/rom_header.s | 6 |
3 files changed, 159 insertions, 9 deletions
diff --git a/asm/rom5.s b/asm/rom5.s index 3792b1948..7cf87e636 100644 --- a/asm/rom5.s +++ b/asm/rom5.s @@ -198128,15 +198128,15 @@ sub_80DB564: @ 80DB564 strh r1, [r0, 0x3A] movs r1, 0x40 strh r1, [r0, 0x3C] - ldr r1, sub_80DB574 + ldr r1, _080DB574 str r1, [r0, 0x1C] bx lr + .align 2, 0 +_080DB574: .4byte sub_80DB578 thumb_func_end sub_80DB564 - thumb_func_start sub_80DB574 -sub_80DB574: @ 80DB574 - push {r0,r3-r6,lr} - lsrs r5, r1, 32 + thumb_func_start sub_80DB578 +sub_80DB578: @ 80DB578 push {lr} adds r3, r0, 0 movs r0, 0x2E @@ -198192,7 +198192,7 @@ _080DB5D8: _080DB5DE: pop {r0} bx r0 - thumb_func_end sub_80DB574 + thumb_func_end sub_80DB578 thumb_func_start sub_80DB5E4 sub_80DB5E4: @ 80DB5E4 @@ -418750,19 +418750,38 @@ _08146E6C: bl SetUpWindowConfig ldr r0, _08146FF8 bl InitMenuWindow + .if REVISION >= 1 + movs r0, 0xD + movs r1, 0x6 + movs r2, 0x10 + movs r3, 0x9 + .else movs r0, 0xD movs r1, 0x8 movs r2, 0x10 movs r3, 0xB + .endif bl MenuDrawTextWindow + .if REVISION >= 1 + movs r0, 0x1 + movs r1, 0xA + movs r2, 0x1C + movs r3, 0x13 + .else movs r0, 0x1 movs r1, 0xC movs r2, 0x1C movs r3, 0x13 + .endif bl MenuDrawTextWindow ldr r0, _08146FFC + .if REVISION >= 1 + movs r1, 0x2 + movs r2, 0xB + .else movs r1, 0x2 movs r2, 0xD + .endif bl MenuPrint movs r0, 0x1 negs r0, r0 @@ -418874,14 +418893,26 @@ _0814705C: lsls r0, 24 cmp r0, 0 bne _0814710C + .if REVISION >= 1 + movs r0, 0x1 + movs r1, 0xA + movs r2, 0x1C + movs r3, 0x13 + .else movs r0, 0x1 movs r1, 0xC movs r2, 0x1C movs r3, 0x13 + .endif bl MenuDrawTextWindow ldr r0, _081470D0 + .if REVISION >= 1 + movs r1, 0x2 + movs r2, 0xB + .else movs r1, 0x2 movs r2, 0xD + .endif bl MenuPrint ldr r0, _081470D4 ldrb r0, [r0] @@ -418890,8 +418921,13 @@ _0814705C: cmp r0, 0 beq _08147096 ldr r0, _081470D8 + .if REVISION >= 1 + movs r1, 0x2 + movs r2, 0xB + .else movs r1, 0x2 movs r2, 0xD + .endif bl MenuPrint _08147096: adds r0, r4, 0x1 @@ -418905,14 +418941,26 @@ _08147096: _081470A6: cmp r4, 0x3 bne _081470E4 + .if REVISION >= 1 + movs r0, 0x1 + movs r1, 0xA + movs r2, 0x1C + movs r3, 0x13 + .else movs r0, 0x1 movs r1, 0xC movs r2, 0x1C movs r3, 0x13 + .endif bl MenuDrawTextWindow ldr r0, _081470DC + .if REVISION >= 1 + movs r1, 0x2 + movs r2, 0xB + .else movs r1, 0x2 movs r2, 0xD + .endif bl MenuPrint ldr r0, _081470E0 bl SetMainCallback2 @@ -418926,32 +418974,56 @@ _081470D8: .4byte gUnknown_084115F9 _081470DC: .4byte gUnknown_0841164E _081470E0: .4byte sub_81471A4 _081470E4: + .if REVISION >= 1 + movs r0, 0x1 + movs r1, 0xA + movs r2, 0x1C + movs r3, 0x13 + .else movs r0, 0x1 movs r1, 0xC movs r2, 0x1C movs r3, 0x13 + .endif bl MenuDrawTextWindow ldr r0, _08147104 ldr r0, [r0] cmp r0, 0 bne _08147134 ldr r0, _08147108 + .if REVISION >= 1 + movs r1, 0x2 + movs r2, 0xB + .else movs r1, 0x2 movs r2, 0xD + .endif bl MenuPrint b _0814713E .align 2, 0 _08147104: .4byte 0x03005ebc _08147108: .4byte gUnknown_08411747 _0814710C: + .if REVISION >= 1 + movs r0, 0x1 + movs r1, 0xA + movs r2, 0x1C + movs r3, 0x13 + .else movs r0, 0x1 movs r1, 0xC movs r2, 0x1C movs r3, 0x13 + .endif bl MenuDrawTextWindow ldr r0, _0814712C + .if REVISION >= 1 + movs r1, 0x2 + movs r2, 0xB + .else movs r1, 0x2 movs r2, 0xD + .endif bl MenuPrint ldr r0, _08147130 bl SetMainCallback2 @@ -418961,8 +419033,13 @@ _0814712C: .4byte gUnknown_0841164E _08147130: .4byte sub_8147154 _08147134: ldr r0, _0814714C + .if REVISION >= 1 + movs r1, 0x2 + movs r2, 0xB + .else movs r1, 0x2 movs r2, 0xD + .endif bl MenuPrint _0814713E: ldr r0, _08147150 @@ -418988,14 +419065,26 @@ sub_8147154: @ 8147154 ands r0, r1 cmp r0, 0 beq _0814718A + .if REVISION >= 1 + movs r0, 0x1 + movs r1, 0xA + movs r2, 0x1C + movs r3, 0x13 + .else movs r0, 0x1 movs r1, 0xC movs r2, 0x1C movs r3, 0x13 + .endif bl MenuDrawTextWindow ldr r0, _08147198 + .if REVISION >= 1 + movs r1, 0x2 + movs r2, 0xB + .else movs r1, 0x2 movs r2, 0xD + .endif bl MenuPrint ldr r0, _0814719C bl SetVBlankCallback @@ -419094,7 +419183,11 @@ sub_8147218: @ 8147218 strh r0, [r2, 0x3E] mov r1, r12 adds r1, 0x3C + .if REVISION >= 1 + movs r0, 0x38 + .else movs r0, 0x48 + .endif strb r0, [r1] ldr r0, _0814729C ldrh r0, [r0] diff --git a/asm/rom_803D1FC.s b/asm/rom_803D1FC.s index ed89d9d89..49009abf0 100644 --- a/asm/rom_803D1FC.s +++ b/asm/rom_803D1FC.s @@ -4411,6 +4411,62 @@ _0803FB56: bx r0 thumb_func_end DrawSpindaSpots + .if REVISION >= 1 + thumb_func_start sub_803FB68 +sub_803FB68: @ 803FB68 + push {r4-r7,lr} + mov r7, r9 + mov r6, r8 + push {r6,r7} + sub sp, 0x4 + adds r5, r0, 0 + lsls r1, 16 + lsrs r7, r1, 16 + lsls r2, 16 + lsrs r2, 16 + mov r8, r2 + ldr r0, =0x20231CC + mov r9, r0 + adds r0, r5, 0 + movs r1, 0x2 + mov r2, r9 + bl GetMonData + mov r4, sp + adds r0, r5, 0 + movs r1, 0x3 + mov r2, sp + bl GetMonData + strb r0, [r4, 0x0] + lsls r0, 24 + lsrs r0, 24 + cmp r0, 0x2 + bne _0803FBC4 + movs r6, 0xB + adds r0, r7, 0 + muls r0, r6 + ldr r4, =gSpeciesNames + adds r0, r4 + mov r1, r9 + bl StringCompareWithoutExtCtrlCodes + cmp r0, 0 + bne _0803FBC4 + mov r2, r8 + muls r2, r6 + adds r2, r4 + adds r0, r5, 0 + movs r1, 0x2 + bl SetMonData +_0803FBC4: + add sp, 0x4 + pop {r3,r4} + mov r8, r3 + mov r9, r4 + pop {r4-r7} + pop {r0} + bx r0 + .pool + thumb_func_end sub_803FB68 + .else thumb_func_start sub_803FB68 sub_803FB68: @ 803FB68 push {r4-r7,lr} @@ -4452,6 +4508,7 @@ _0803FBA8: _0803FBB4: .4byte 0x020231cc _0803FBB8: .4byte gSpeciesNames thumb_func_end sub_803FB68 + .endif thumb_func_start sub_803FBBC sub_803FBBC: @ 803FBBC diff --git a/asm/rom_header.s b/asm/rom_header.s index e49b4fbee..a7348ad1f 100644 --- a/asm/rom_header.s +++ b/asm/rom_header.s @@ -51,13 +51,13 @@ RomHeaderReserved1: .space 7 RomHeaderSoftwareVersion: - .byte 0 + .byte REVISION RomHeaderChecksum: .ifdef SAPPHIRE - .byte 0x55 + .byte 0x55 - REVISION .else - .byte 0x41 + .byte 0x41 - REVISION .endif RomHeaderReserved2: |