If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
Snowboard Champion/ROM map: Difference between revisions
Jump to navigation
Jump to search
Mantidactyle (talk | contribs) (Created page with "===Score handling=== ====Score handling main routine==== ROM0:2AE8 3E 3C ld a,3C ROM0:2AEA 57 ld d,a ROM0:2AEB CD 61 32 call 3261 ROM0...") |
Mantidactyle (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{rommap|game=Snowboard Champion}} | |||
===Score handling=== | ===Score handling=== | ||
====Score handling main routine==== | ====Score handling main routine==== | ||
Line 126: | Line 127: | ||
ROM0:2C9F CD 8D 04 call 048D | ROM0:2C9F CD 8D 04 call 048D | ||
ROM0:2CA2 C9 ret | ROM0:2CA2 C9 ret | ||
{{Internal Data|game=Snowboard Champion}} |
Revision as of 17:35, 14 June 2023
The following article is a ROM map for Snowboard Champion.
Score handling
Score handling main routine
ROM0:2AE8 3E 3C ld a,3C ROM0:2AEA 57 ld d,a ROM0:2AEB CD 61 32 call 3261 ROM0:2AEE CD 84 74 call 7484 ROM0:2AF1 CD 90 32 call 3290 ROM0:2AF4 3E 01 ld a,01 ROM0:2AF6 EA A9 C6 ld (C6A9),a ROM0:2AF9 3E 00 ld a,00 ROM0:2AFB 21 E1 C1 ld hl,C1E1 ROM0:2AFE 06 00 ld b,00 ROM0:2B00 4F ld c,a ROM0:2B01 09 add hl,bc ROM0:2B02 7E ld a,(hl) ROM0:2B03 FE 02 cp a,02 ROM0:2B05 CA B3 2B jp z,2BB3 ROM0:2B08 57 ld d,a ROM0:2B09 FA B1 C3 ld a,(C3B1) ROM0:2B0C FE 00 cp a,00 ROM0:2B0E C2 82 2B jp nz,2B82 ROM0:2B11 FA F3 C6 ld a,(C6F3) ROM0:2B14 FE 01 cp a,01 ROM0:2B16 28 0B jr z,2B23 ROM0:2B18 FA 0F C2 ld a,(C20F) ROM0:2B1B 5F ld e,a ROM0:2B1C 3E 01 ld a,01 ROM0:2B1E A3 and e ROM0:2B1F B7 or a ROM0:2B20 C2 D3 2B jp nz,2BD3 ROM0:2B23 3E 01 ld a,01 ROM0:2B25 21 E1 C1 ld hl,C1E1 ROM0:2B28 06 00 ld b,00 ROM0:2B2A 4F ld c,a ROM0:2B2B 09 add hl,bc ROM0:2B2C 7E ld a,(hl) ROM0:2B2D BA cp d ROM0:2B2E 20 52 jr nz,2B82 ROM0:2B30 FE 02 cp a,02 ROM0:2B32 20 4E jr nz,2B82 ROM0:2B34 FA C0 C7 ld a,(C7C0) ROM0:2B37 3D dec a ROM0:2B38 EA C0 C7 ld (C7C0),a ROM0:2B3B 20 45 jr nz,2B82 ROM0:2B3D FA 92 C6 ld a,(C692) ROM0:2B40 21 75 C7 ld hl,C775 ROM0:2B43 11 85 C7 ld de,C785 ROM0:2B46 06 03 ld b,03 ROM0:2B48 CD 3C 34 call 343C ROM0:2B4B 21 6C C7 ld hl,C76C ROM0:2B4E 11 82 C7 ld de,C782 ROM0:2B51 06 03 ld b,03 ROM0:2B53 CD 3C 34 call 343C ROM0:2B56 CD 73 2C call 2C73 ;Retrieve score of current round ROM0:2B59 CD DB 2A call 2ADB ROM0:2B5C CD A3 2C call 2CA3 ROM0:2B5F 3E 01 ld a,01 ROM0:2B61 EA A2 C0 ld (C0A2),a ROM0:2B64 FA 30 C7 ld a,(C730) ROM0:2B67 67 ld h,a ROM0:2B68 EA 32 C2 ld (C232),a ROM0:2B6B FA 31 C7 ld a,(C731) ROM0:2B6E 6F ld l,a ROM0:2B6F EA 33 C2 ld (C233),a ROM0:2B72 CD CC 33 call 33CC ROM0:2B75 CD D4 27 call 27D4 ROM0:2B78 3E 1A ld a,1A ROM0:2B7A EA A4 C0 ld (C0A4),a ROM0:2B7D 3E 80 ld a,80 ROM0:2B7F EA C0 C7 ld (C7C0),a ROM0:2B82 3E 00 ld a,00 ROM0:2B84 21 E1 C1 ld hl,C1E1 ROM0:2B87 06 00 ld b,00 ROM0:2B89 4F ld c,a ROM0:2B8A 09 add hl,bc ROM0:2B8B 7E ld a,(hl) ROM0:2B8C FE 02 cp a,02 ROM0:2B8E 20 22 jr nz,2BB2 ROM0:2B90 FA B1 C3 ld a,(C3B1) ROM0:2B93 FE 00 cp a,00 ROM0:2B95 C2 B2 2B jp nz,2BB2 ROM0:2B98 3E 00 ld a,00 ROM0:2B9A 21 AD C3 ld hl,C3AD ROM0:2B9D 06 00 ld b,00 ROM0:2B9F 4F ld c,a ROM0:2BA0 09 add hl,bc ROM0:2BA1 7E ld a,(hl) ROM0:2BA2 FE 2F cp a,2F ROM0:2BA4 28 0C jr z,2BB2 ROM0:2BA6 3E 00 ld a,00 ROM0:2BA8 21 AD C3 ld hl,C3AD ROM0:2BAB 06 00 ld b,00 ROM0:2BAD 4F ld c,a ROM0:2BAE 09 add hl,bc ROM0:2BAF 3E 2F ld a,2F ROM0:2BB1 77 ld (hl),a ROM0:2BB2 C9 ret
Retrieve score of current round
ROM0:2C73 21 5A C7 ld hl,C75A ROM0:2C76 2A ldi a,(hl) ROM0:2C77 47 ld b,a ROM0:2C78 2A ldi a,(hl) ROM0:2C79 4F ld c,a ROM0:2C7A E5 push hl ROM0:2C7B C5 push bc ROM0:2C7C E1 pop hl ROM0:2C7D 11 E8 03 ld de,03E8 ROM0:2C80 CD A4 30 call 30A4 ROM0:2C83 3E 01 ld a,01 ROM0:2C85 51 ld d,c ROM0:2C86 21 82 C7 ld hl,C782 ROM0:2C89 CD 8D 04 call 048D ROM0:2C8C E1 pop hl ROM0:2C8D 2A ldi a,(hl) ROM0:2C8E 47 ld b,a ROM0:2C8F 2A ldi a,(hl) ROM0:2C90 4F ld c,a ROM0:2C91 C5 push bc ROM0:2C92 E1 pop hl ROM0:2C93 11 E8 03 ld de,03E8 ROM0:2C96 CD A4 30 call 30A4 ROM0:2C99 3E 01 ld a,01 ROM0:2C9B 51 ld d,c ROM0:2C9C 21 85 C7 ld hl,C785 ROM0:2C9F CD 8D 04 call 048D ROM0:2CA2 C9 ret
Internal Data for Snowboard Champion
| |
---|---|