Graphical Show Item Early
#1
Graphical Show Item Early

DOES NOT work on Dolphin Emulator!

NOTE: The code is setup for 480i definition. If 480p is used, the image message will in the exact center of the screen and it will appear squished. Change your TV Resolution accordingly within Wii Settings.

Online use only!

This code will tell you (via a graphical image/message followed by ": item") what your item is the very moment you hit the box. When the game is first booted, you are told your Game ID. Once the countdown of the race begins, you will see N/A because you haven't picked up an item box yet.

To prevent this thread from being super long, I split the code into two parts. The first part of the code (which is listed last, and it's region free), is Y.S.'s easy extender plus his Execute ASM code (shortened by Star). The second part of the code (which is a normal region-specific C2-type ASM code) is listed first. When making your GCT, be sure the add the gigantic region-free part first, then add on the C2-type ASM code afterwards that's for your region/version of MKWii.

Following Item Image Names
GREEN
RED
NANA
FIB
SHROOM
3 SHRM
BOMB
BLUE
SHOCK
STAR
GOLDEN
MEGA
BLOOPR
POW
TC
BILL
3 GRNS
3 REDS
3 NANA
N/A (No Item Available, Shroom)

-Second part of code-
NTSC-U
C265EE14 00000046
88030001 9421FFB0
BDC10008 3E808000
3A600000 92740000
B2740004 2C000000
41820008 40820014
3F004752 63184545
3B604E00 480001E8
2C000001 41820008
40820010 3F005245
63184400 480001D0
2C000002 41820008
40820010 3F004E41
63184E41 480001B8
2C000003 41820008
40820010 3F004649
63184200 480001A0
2C000004 41820008
40820014 3F005348
6318524F 3B604F4D
48000184 2C000005
41820008 40820014
3F003320 63185348
3B60524D 48000168
2C000006 41820008
40820010 3F00424F
63184D42 48000150
2C000007 41820008
40820010 3F00424C
63185545 48000138
2C000008 41820008
40820014 3F005348
63184F43 3B604B00
4800011C 2C000009
41820008 40820010
3F005354 63184152
48000104 2C00000A
41820008 40820014
3F00474F 63184C44
3B60544E 480000E8
2C00000B 41820008
40820010 3F004E45
63184741 480000D0
2C00000C 41820008
40820014 3F00424C
63184F4F 3B605052
480000B4 2C00000D
41820008 40820010
3F00504F 63185700
4800009C 2C00000E
41820008 4082000C
3F005443 48000088
2C00000F 41820008
40820010 3F004249
63184C4C 48000070
2C000010 41820008
40820014 3F003320
63184752 3B604E53
48000054 2C000011
41820008 40820014
3F003320 63185245
3B604453 48000038
2C000012 41820008
40820014 3F003320
63184E41 3B604E41
4800001C 2C000014
41820008 40820010
3F004E2F 63184100
48000004 93140000
B3740004 B9C10008
38210050 00000000

PAL
C265E18C 00000046
88030001 9421FFB0
BDC10008 3E808000
3A600000 92740000
B2740004 2C000000
41820008 40820014
3F004752 63184545
3B604E00 480001E8
2C000001 41820008
40820010 3F005245
63184400 480001D0
2C000002 41820008
40820010 3F004E41
63184E41 480001B8
2C000003 41820008
40820010 3F004649
63184200 480001A0
2C000004 41820008
40820014 3F005348
6318524F 3B604F4D
48000184 2C000005
41820008 40820014
3F003320 63185348
3B60524D 48000168
2C000006 41820008
40820010 3F00424F
63184D42 48000150
2C000007 41820008
40820010 3F00424C
63185545 48000138
2C000008 41820008
40820014 3F005348
63184F43 3B604B00
4800011C 2C000009
41820008 40820010
3F005354 63184152
48000104 2C00000A
41820008 40820014
3F00474F 63184C44
3B60544E 480000E8
2C00000B 41820008
40820010 3F004E45
63184741 480000D0
2C00000C 41820008
40820014 3F00424C
63184F4F 3B605052
480000B4 2C00000D
41820008 40820010
3F00504F 63185700
4800009C 2C00000E
41820008 4082000C
3F005443 48000088
2C00000F 41820008
40820010 3F004249
63184C4C 48000070
2C000010 41820008
40820014 3F003320
63184752 3B604E53
48000054 2C000011
41820008 40820014
3F003320 63185245
3B604453 48000038
2C000012 41820008
40820014 3F003320
63184E41 3B604E41
4800001C 2C000014
41820008 40820010
3F004E2F 63184100
48000004 93140000
B3740004 B9C10008
38210050 00000000

NTSC-J
C265D7F8 00000046
88030001 9421FFB0
BDC10008 3E808000
3A600000 92740000
B2740004 2C000000
41820008 40820014
3F004752 63184545
3B604E00 480001E8
2C000001 41820008
40820010 3F005245
63184400 480001D0
2C000002 41820008
40820010 3F004E41
63184E41 480001B8
2C000003 41820008
40820010 3F004649
63184200 480001A0
2C000004 41820008
40820014 3F005348
6318524F 3B604F4D
48000184 2C000005
41820008 40820014
3F003320 63185348
3B60524D 48000168
2C000006 41820008
40820010 3F00424F
63184D42 48000150
2C000007 41820008
40820010 3F00424C
63185545 48000138
2C000008 41820008
40820014 3F005348
63184F43 3B604B00
4800011C 2C000009
41820008 40820010
3F005354 63184152
48000104 2C00000A
41820008 40820014
3F00474F 63184C44
3B60544E 480000E8
2C00000B 41820008
40820010 3F004E45
63184741 480000D0
2C00000C 41820008
40820014 3F00424C
63184F4F 3B605052
480000B4 2C00000D
41820008 40820010
3F00504F 63185700
4800009C 2C00000E
41820008 4082000C
3F005443 48000088
2C00000F 41820008
40820010 3F004249
63184C4C 48000070
2C000010 41820008
40820014 3F003320
63184752 3B604E53
48000054 2C000011
41820008 40820014
3F003320 63185245
3B604453 48000038
2C000012 41820008
40820014 3F003320
63184E41 3B604E41
4800001C 2C000014
41820008 40820010
3F004E2F 63184100
48000004 93140000
B3740004 B9C10008
38210050 00000000

NTSC-K
C264C4A4 00000046
88030001 9421FFB0
BDC10008 3E808000
3A600000 92740000
B2740004 2C000000
41820008 40820014
3F004752 63184545
3B604E00 480001E8
2C000001 41820008
40820010 3F005245
63184400 480001D0
2C000002 41820008
40820010 3F004E41
63184E41 480001B8
2C000003 41820008
40820010 3F004649
63184200 480001A0
2C000004 41820008
40820014 3F005348
6318524F 3B604F4D
48000184 2C000005
41820008 40820014
3F003320 63185348
3B60524D 48000168
2C000006 41820008
40820010 3F00424F
63184D42 48000150
2C000007 41820008
40820010 3F00424C
63185545 48000138
2C000008 41820008
40820014 3F005348
63184F43 3B604B00
4800011C 2C000009
41820008 40820010
3F005354 63184152
48000104 2C00000A
41820008 40820014
3F00474F 63184C44
3B60544E 480000E8
2C00000B 41820008
40820010 3F004E45
63184741 480000D0
2C00000C 41820008
40820014 3F00424C
63184F4F 3B605052
480000B4 2C00000D
41820008 40820010
3F00504F 63185700
4800009C 2C00000E
41820008 4082000C
3F005443 48000088
2C00000F 41820008
40820010 3F004249
63184C4C 48000070
2C000010 41820008
40820014 3F003320
63184752 3B604E53
48000054 2C000011
41820008 40820014
3F003320 63185245
3B604453 48000038
2C000012 41820008
40820014 3F003320
63184E41 3B604E41
4800001C 2C000014
41820008 40820010
3F004E2F 63184100
48000004 93140000
B3740004 B9C10008
38210050 00000000

-First part of code-
F6000002 80008180
3803001F 54030034
48000008 38644000
4C000000 00001858
E0000000 80008000
F6000002 80008180
90A402E0 806502E4
908502E4 2C030000
D600005C 800018A8
E0000000 80008000
F6000003 80008180
9421FF60 7C0802A6
900100A4 BF61008C
7C7B1B78 40860024
4C000000 00001854
E0000000 80008000
68200091 00000001
9421FF80 BC610008
7D6802A6 91610084
480002FD 00000000
00000000 183C3C18
18001800 66662400
00000000 6C6CFE6C
FE6C6C00 183E603C
067C1800 00C6CC18
3066C600 386C3876
DCCC7600 18183000
00000000 0C183030
30180C00 30180C0C
0C183000 00663CFF
3C660000 0018187E
18180000 00000000
00181830 0000007E
00000000 00000000
00181800 060C1830
60C08000 386CC6D6
C66C3800 18381818
18187E00 7CC6061C
3066FE00 7CC6063C
06C67C00 1C3C6CCC
FE0C1E00 FEC0C0FC
06C67C00 3860C0FC
C6C67C00 FEC60C18
30303000 7CC6C67C
C6C67C00 7CC6C67E
060C7800 00181800
00181800 00181800
00181830 060C1830
180C0600 00007E00
007E0000 6030180C
18306000 7CC60C18
18001800 7CC6DEDE
DEC07800 386CC6FE
C6C6C600 FC66667C
6666FC00 3C66C0C0
C0663C00 F86C6666
666CF800 FE626878
6862FE00 FE626878
6860F000 3C66C0C0
CE663A00 C6C6C6FE
C6C6C600 3C181818
18183C00 1E0C0C0C
CCCC7800 E6666C78
6C66E600 F0606060
6266FE00 C6EEFEFE
D6C6C600 C6E6F6DE
CEC6C600 7CC6C6C6
C6C67C00 FC66667C
6060F000 7CC6C6C6
C6CE7C0E FC66667C
6C66E600 3C663018
0C663C00 7E7E5A18
18183C00 C6C6C6C6
C6C67C00 C6C6C6C6
C66C3800 C6C6C6D6
D6FE6C00 C6C66C38
6CC6C600 6666663C
18183C00 FEC68C18
3266FE00 3C303030
30303C00 C0603018
0C060200 3C0C0C0C
0C0C3C00 10386CC6
00000000 00000000
000000FF 30180C00
00000000 0000780C
7CCC7600 E0607C66
6666DC00 00007CC6
C0C67C00 1C0C7CCC
CCCC7600 00007CC6
FEC07C00 3C6660F8
6060F000 000076CC
CC7C0CF8 E0606C76
6666E600 18003818
18183C00 06000606
0666663C E060666C
786CE600 38181818
18183C00 0000ECFE
D6D6D600 0000DC66
66666600 00007CC6
C6C67C00 0000DC66
667C60F0 000076CC
CC7C0C1E 0000DC76
6060F000 00007EC0
7C06FC00 3030FC30
30361C00 0000CCCC
CCCC7600 0000C6C6
C66C3800 0000C6D6
D6FE6C00 0000C66C
386CC600 0000C6C6
C67E06FC 00007E4C
18327E00 0E181870
18180E00 18181818
18181800 7018180E
18187000 76DC0000
00000000 7DC802A6
4800002D 00000000
EB80EB80 10801080
525A52F0 AC26ACAE
D210D292 74477437
29F0296E 26E42670
50CC50B6 7FE802A6
549ED5BA 7E7EF82E
549E15BA 7E9EF82E
3D80CC00 618C2000
8BEC0049 57EF2834
8BEC001D 57FF801E
A3CC001E 7FF0F378
56102834 66108000
5485563E 5486863E
7CC679D6 7FE53214
1FFF0008 7F30FA14
7F38CB78 3863FFFF
8EA30001 2C150000
418200D0 2C15000A
40820014 55FF1838
7F39FA14 7F38CB78
4BFFFFE0 2815007F
41800010 28150020
40800008 3AA00020
3AB5FFE0 56B61838
3BE00008 7FE903A6
3A400080 7EEEB0AE
7EFF9039 41820014
2C140000 41820024
92980000 48000014
2C130000 41820014
92780000 48000004
7C00C06C 7C0004AC
3B180004 5652F87E
28120000 41A1FFC4
3B18FFE0 7F187A14
3AD60001 4220FFAC
1FEF0008 7F1FC050
3B180020 1FEF0008
7FD0C050 7FBEFBD6
7FBDF9D6 7FBDF050
7C1D7840 40820010
55FF1838 7F39FA14
7F38CB78 4BFFFF2C
81610084 7D6803A6
B8610008 38210080
4E800020 592E532E
C0000000 00000013
9421FE80 BC610108
7C6802A6 90610184
38610008 48000011
2573203A 6974656D
0A000000 7C8802A6
3CA08000 60A50000
3D008000 81081858
A0C8FFFA 54C6801E
A8E8FFFE 7CC63A14
38C6001F 54C60034
38E67FE0 3D808000
818C1854 7D8903A6
4E800421 38610008
3C800D1A 60840603
3D808000 818C1850
7D8903A6 4E800421
80610184 7C6803A6
B8610108 38210180
4E800020 4E800020

Source (for just the C2 code)
lbz r0, 0x0001 (r3) #Default ASM

stwu r1, -80(r1) # Make space for 18 registers
stmw r14, 8(r1) # Push r14-r31 onto the stack

lis r20, 0x8000 #Set Register 20 to the very 1st address in RAM (where the Game ID is located)
li r19, 0x0 #Clear out Register 19
stw r19, 0 (r20) #Clear out contents at address of Register 20
sth r19, 0x0004 (r20) #Clear out contents at address of Register 20; offset 0x0004

cmpwi r0, 0x0
beq green_0
bne cmp_1

green_0:
lis r24, 0x4752
ori r24, r24, 0x4545
li r27, 0x4E00
b item_done

cmp_1:
cmpwi r0, 0x1
beq red_1
bne cmp_2

red_1:
lis r24, 0x5245
ori r24, r24, 0x4400
b item_done

cmp_2:
cmpwi r0, 0x2
beq nana_2
bne cmp_3

nana_2:
lis r24, 0x4E41
ori r24, r24, 0x4E41
b item_done

cmp_3:
cmpwi r0, 0x3
beq fib_3
bne cmp_4

fib_3:
lis r24, 0x4649 
ori r24, r24, 0x4200
b item_done

cmp_4:
cmpwi r0, 0x4
beq shroom_4
bne cmp_5

shroom_4:
lis r24, 0x5348 
ori r24, r24, 0x524F
li r27, 0x4F4D
b item_done

cmp_5:
cmpwi r0, 0x5
beq tripshroom_5
bne cmp_6

tripshroom_5:
lis r24, 0x3320 
ori r24, r24, 0x5348 
li r27, 0x524D
b item_done

cmp_6:
cmpwi r0, 0x6
beq bomb_6
bne cmp_7

bomb_6:
lis r24, 0x424F
ori r24, r24, 0x4D42
b item_done

cmp_7:
cmpwi r0, 0x7
beq blue_7
bne cmp_8

blue_7:
lis r24, 0x424C
ori r24, r24, 0x5545
b item_done

cmp_8:
cmpwi r0, 0x8
beq shock_8
bne cmp_9

shock_8:
lis r24, 0x5348
ori r24, r24, 0x4F43
li r27, 0x4B00
b item_done

cmp_9:
cmpwi r0, 0x9
beq star_9
bne cmp_A

star_9:
lis r24, 0x5354
ori r24, r24, 0x4152
b item_done

cmp_A:
cmpwi r0, 0xA
beq golden_A
bne cmp_B

golden_A:
lis r24, 0x474F
ori r24, r24, 0x4C44
li r27, 0x544E
b item_done

cmp_B:
cmpwi r0, 0xB
beq mega_B
bne cmp_C

mega_B:
lis r24, 0x4E45
ori r24, r24, 0x4741
b item_done

cmp_C:
cmpwi r0, 0xC
beq blooper_C
bne cmp_D

blooper_C:
lis r24, 0x424C
ori r24, r24, 0x4F4F
li r27, 0x5052
b item_done

cmp_D:
cmpwi r0, 0xD
beq pow_D
bne cmp_E

pow_D:
lis r24, 0x504F
ori r24, r24, 0x5700
b item_done

cmp_E:
cmpwi r0, 0xE
beq TC_E
bne cmp_F

TC_E:
lis r24, 0x5443
b item_done

cmp_F:
cmpwi r0, 0xF
beq bill_F
bne cmp_10

bill_F:
lis r24, 0x4249
ori r24, r24, 0x4C4C
b item_done

cmp_10:
cmpwi r0, 0x10
beq tripgreen_10
bne cmp_11

tripgreen_10:
lis r24, 0x3320
ori r24, r24, 0x4752
li r27, 0x4E53
b item_done

cmp_11:
cmpwi r0, 0x11
beq tripred_11
bne cmp_12

tripred_11:
lis r24, 0x3320
ori r24, r24, 0x5245
li r27, 0x4453
b item_done

cmp_12:
cmpwi r0, 0x12
beq tripnana_12
bne cmp_14

tripnana_12:
lis r24, 0x3320
ori r24, r24, 0x4E41
li r27, 0x4E41
b item_done

cmp_14:
cmpwi r0, 0x14
beq noitemav_14
bne item_done

noitemav_14:
lis r24, 0x4E2F
ori r24, r24, 0x4100
b item_done

item_done:
stw r24, 0 (r20) #Store Ascii Value
sth r27, 0x0004 (r20) #Store Ascii Value

lmw r14, 8(r1) # Pop r14-r31 off the stack
addi r1, r1, 80 # Release the space

Code creator: zak
Code contributor(s): Y.S. (Easy Extender), Star (Shortened version of Y.S.'s Execute ASM portion of Easy Extender)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)