Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 646
» Latest member: Luca1337
» Forum threads: 1,815
» Forum posts: 14,000
Full Statistics
|
Online Users |
There are currently 118 online users. » 2 Member(s) | 111 Guest(s) Applebot, Bing, Facebook, Google, Twitter, Vega
|
Latest Threads |
Allow Pausing Before Race...
Forum: Offline Non-Item
Last Post: Vega
20 minutes ago
» Replies: 0
» Views: 2
|
Top 10 Most Influential C...
Forum: Coding & Hacking General Discussion
Last Post: Vega
4 hours ago
» Replies: 2
» Views: 7,339
|
Show Ice Cube on Online P...
Forum: Online Non-Item
Last Post: _Ro
11 hours ago
» Replies: 0
» Views: 30
|
CPU Control Cycler [Ro]
Forum: Offline Non-Item
Last Post: _Ro
Today, 07:56 AM
» Replies: 7
» Views: 1,008
|
Thunder Cloud Effect Modi...
Forum: Offline; Item
Last Post: JerryHatrick
Yesterday, 11:13 PM
» Replies: 11
» Views: 1,088
|
MKW Coder/Developer of th...
Forum: Coding & Hacking General Discussion
Last Post: Vega
Yesterday, 09:10 PM
» Replies: 10
» Views: 13,830
|
Make it to 10,000
Forum: General Discussion
Last Post: Vega
Yesterday, 08:15 PM
» Replies: 7,338
» Views: 5,670,635
|
Miniturbos and Inside Dri...
Forum: Coding & Hacking General Discussion
Last Post: JerryHatrick
Yesterday, 09:54 AM
» Replies: 1
» Views: 858
|
Code request???
Forum: Code Support / Help / Requests
Last Post: DrTap
01-09-2025, 06:06 PM
» Replies: 3
» Views: 4,956
|
CPUs/Online Players Have ...
Forum: Visual & Sound Effects
Last Post: Zeraora
01-09-2025, 02:26 AM
» Replies: 2
» Views: 513
|
|
|
Custom Laps [JoshuaMK] |
Posted by: JoshuaMK - 07-21-2019, 02:04 AM - Forum: Offline Non-Item
- Replies (5)
|
|
Custom Laps [JoshuaMK]
This code lets you add extra laps to each race, ranging from 1 extra lap to 65535 extra laps.
(NTSC-U)
C252FEB4 00000011
3D808140 80AC179A
28050000 6000XXXX
41820010 80A30044
38A50001 90A30044
38A40001 40820008
90A30044 B0A30024
28050001 4182000C
7C040040 40810048
8B830023 3B9C0001
9B830023 838C179A
281C0000 40820030
28040000 40820028
894C1799 7D4903A6
838C17A2 A95C0024
7D405050 915C0044
3B9C00C4 4200FFF0
938C179A 00000000
C27AE78C 00000002
3D808140 98050000
980C1799 00000000
C27E4C9C 00000002
3D808140 807FEE20
906C179E 00000000
C27ED9F8 00000003
3D808140 838C17A2
2C1C0000 41820008
A39C0024 00000000
C25309C0 0000000A
807E0044 3D808140
816C179E 280B0000
41820038 896C17D2
280B0000 4082002C
888C1799 7C8903A6
618B179E 97CB0004
3BDE00C4 4200FFF8
396000C4 7D6B21D6
7FCBF050 9B0C17D2
60000000 00000000
C253068C 00000004
817A0044 899A0023
3803FFFF 398CFFFF
396BFFFF 917A0044
999A0023 00000000
04530110 A81D0022
(PAL)
C25349FC 00000011
3D808140 80AC179A
28050000 6000XXXX
41820010 80A30044
38A50001 90A30044
38A40001 40820008
90A30044 B0A30024
28050001 4182000C
7C040040 40810048
8B830023 3B9C0001
9B830023 838C179A
281C0000 40820030
28040000 40820028
894C1799 7D4903A6
838C17A2 A95C0024
7D405050 915C0044
3B9C00C4 4200FFF0
938C179A 00000000
C27BD1EC 00000002
3D808140 98050000
980C1799 00000000
C27EEFAC 00000002
3D808140 807F3618
906C179E 00000000
C27F84F8 00000003
3D808140 838C17A2
2C1C0000 41820008
A39C0024 00000000
C2535508 0000000A
807E0044 3D808140
816C179E 280B0000
41820038 896C17D2
280B0000 4082002C
888C1799 7C8903A6
618B179E 97CB0004
3BDE00C4 4200FFF8
396000C4 7D6B21D6
7FCBF050 9B0C17D2
60000000 00000000
C25351D4 00000004
817A0044 899A0023
3803FFFF 398CFFFF
396BFFFF 917A0044
999A0023 00000000
04534C58 A81D0022
(NTSC-J)
C253437C 00000011
3D808140 80AC179A
28050000 6000XXXX
41820010 80A30044
38A50001 90A30044
38A40001 40820008
90A30044 B0A30024
28050001 4182000C
7C040040 40810048
8B830023 3B9C0001
9B830023 838C179A
281C0000 40820030
28040000 40820028
894C1799 7D4903A6
838C17A2 A95C0024
7D405050 915C0044
3B9C00C4 4200FFF0
938C179A 00000000
C27BC858 00000002
3D808140 98050000
980C1799 00000000
C27EE618 00000002
3D808140 807F2678
906C179E 00000000
C27F7B64 00000003
3D808140 838C17A2
2C1C0000 41820008
A39C0024 00000000
C2534E88 0000000A
807E0044 3D808140
816C179E 280B0000
41820038 896C17D2
280B0000 4082002C
888C1799 7C8903A6
618B179E 97CB0004
3BDE00C4 4200FFF8
396000C4 7D6B21D6
7FCBF050 9B0C17D2
60000000 00000000
C2534B54 00000004
817A0044 899A0023
3803FFFF 398CFFFF
396BFFFF 917A0044
999A0023 00000000
045345D8 A81D0022
(NTSC-K)
C2522A58 00000011
3D808140 80AC179A
28050000 6000XXXX
41820010 80A30044
38A50001 90A30044
38A40001 40820008
90A30044 B0A30024
28050001 4182000C
7C040040 40810048
8B830023 3B9C0001
9B830023 838C179A
281C0000 40820030
28040000 40820028
894C1799 7D4903A6
838C17A2 A95C0024
7D405050 915C0044
3B9C00C4 4200FFF0
938C179A 00000000
C27AB5AC 00000002
3D808140 98050000
980C1799 00000000
C27DD36C 00000002
3D808140 807F1C58
906C179E 00000000
C27E68B8 00000003
3D808140 838C17A2
2C1C0000 41820008
A39C0024 00000000
C2523560 0000000A
807E0044 3D808140
816C179E 280B0000
41820038 896C17D2
280B0000 4082002C
888C1799 7C8903A6
618B179E 97CB0004
3BDE00C4 4200FFF8
396000C4 7D6B21D6
7FCBF050 9B0C17D2
60000000 00000000
C252322C 00000004
817A0044 899A0023
3803FFFF 398CFFFF
396BFFFF 917A0044
999A0023 00000000
04522CB0 A81D0022
XXXX = Number of Extra Laps. (0000 = 3 lap race, 0001 = 4 lap race, FFFF = 65538 lap race.)
#########
#Source ASM#
#########
#############
#Inject > 8052FEB4#
#############
lis r12, 0x8140
lwz r5, 0x179a (r12)
cmplwi r5, 0
ori r0, r0, 0xFFFF
beq normal
lwz r5, 0x0044 (r3)
addi r5, r5, 1
stw r5, 0x0044 (r3)
normal:
addi r5, r4, 1 #Add 1 and Compare To Wanted Lap Amount
bne store
stw r5, 0x0044 (r3) #Store Lap to Custom Position Tracker
store:
sth r5, 0x0024 (r3) #Store to Custom Lap Tracker
cmplwi r5, 1
beq lap_one #Branch If Crossing Onto Lap 1
cmplw r4, r0
ble the_end #Branch if Less Than Wanted Lap Amount
lap_one:
lbz r28, 0x0023 (r3) #Load Vanilla Lap Into Memory
addi r28, r28, 1 #Add 1 to Lap Amount
stb r28, 0x0023 (r3) #Store Lap Into Vanilla Lap Tracker
lwz r28, 0x179a (r12)
cmplwi r28, 0
bne the_end
cmplwi r4, 0
bne the_end
lbz r10, 0x1799 (r12) #Set CTR to Amount of Racers
mtctr r10
lwz r28, 0x17a2 (r12)
loop: #This Loop Sets the Position Lap Tracker of all racers to be where it hits 3 when race ends to Fix Position Issues.
lha r10, 0x0024 (r28)
sub r10, r10, r0
stw r10, 0x0044 (r28)
addi r28, r28, 0x00c4
bdnz+ loop
stw r28, 0x179a (r12)
the_end:
##############
#Inject > 8053068C#
#############
lwz r11, 0x0044 (r26)
lbz r12, 0x0023 (r26)
subi r0, r3, 1
subi r12, r12, 1
subi r11, r11, 1
stw r11, 0x0044 (r26)
stb r12, 0x0023 (r26)
#############
#Inject > 805909C0#
#############
lwz r3, 0x0044 (r30)
lis r12, 0x8140
lwz r11, 0x179e (r12)
cmplwi r11, 0
beq normal_code
lbz r11, 0x17d2 (r12)
cmplwi r11, 0
bne normal_code
lbz r4, 0x1799 (r12)
mtctr r4
ori r11, r12, 0x179e
loop_back:
stwu r30, 0x0004 (r11)
addi r30, r30, 0x00c4
bdnz+ loop_back
li r11, 0x00c4
mullw r11, r11, r4
sub r30, r30, r11
stb r24, 0x17d2 (r12)
normal_code:
##############
#Inject > 807E4C9C#
#############
lis r12, 0x8140
lwz r3, -0x1130 (r31)
stw r3, 0x179e (r12)
##############
#Inject > 807ED9F8#
#############
lis r12, 0x8140
lwz r28, 0x17a2 (r12)
cmpwi r28, 0
beq the_end
lhz r28, 0x0024 (r28)
the_end:
Code Creator: JoshuaMK
Code Contributor: Mdmwii (Universal Meter address)
|
|
|
Launch Any Wii Channel |
Posted by: Vega - 07-19-2019, 08:02 PM - Forum: Misc/Other
- Replies (3)
|
|
Launch Any Wii Channel
Press your button activator at any time to launch the desired Wii Channel of your choice.
This code does not work for launching the Region Select channel.
NTSC-U
2834XXXX YYYYZZZZ
C20095F4 00000005
3C60UUUU 6063UUUU
3C80LLLL 6084LLLL
3D80801A 618CD960
7D8803A6 4E800020
60000000 00000000
E0000000 80008000
PAL
2834XXXX YYYYZZZZ
C2009634 00000005
3C60UUUU 6063UUUU
3C80LLLL 6084LLLL
3D80801A 618CDA00
7D8803A6 4E800020
60000000 00000000
E0000000 80008000
NTSC-J
2834XXXX YYYYZZZZ
C2009590 00000005
3C60UUUU 6063UUUU
3C80LLLL 6084LLLL
3D80801A 618CD920
7D8803A6 4E800020
60000000 00000000
E0000000 80008000
NTSC-K
2833XXXX YYYYZZZZ
C200973C 00000005
3C60UUUU 6063UUUU
3C80LLLL 6084LLLL
3D80801A 618CDD5C
7D8803A6 4E800020
60000000 00000000
E0000000 80008000
UUUUUUUU = Upper 32 bits of Title ID
LLLLLLLL = Lower 32 bits of Title ID
Example U/L value:
00010002 48414341 = Launch Mii Channel (non-Korean)
Source:
#~~~~~~~~~~~~~~~~#
# START ASSEMBLY #
#~~~~~~~~~~~~~~~~#
#
.set region, '' #Fill in E, P, J, or K within the quotes for your region when Compiling! Lowercase letters can also be used.
.if (region == 'E' || region == 'e') # RMCE
.set The_Addr, 0x801AD960
.elseif (region == 'P' || region == 'p') # RMCP
.set The_Addr, 0x801ADA00
.elseif (region == 'J' || region == 'j') # RMCJ
.set The_Addr, 0x801AD920
.elseif (region == 'K' || region == 'k') # RMCK
.set The_Addr, 0x801ADD5C
.else # Invalid Region
.abort
.endif
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# _OSLaunchTitle Arguments #
# r3 = Upper 32 bits of Title ID #
# r4 = Lower 32 bits of Title ID #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
lis r3, 0x0001 #Example value used just for compilation
ori r3, r3, 0x0002
lis r4, 0x4841
ori r4, r4, 0x4341
#~~~~~~~~~~~~~~~~~~~~~#
# Call _OSLaunchTitle #
#~~~~~~~~~~~~~~~~~~~~~#
lis r12, The_Addr@h
ori r12, r12, The_Addr@l
mtlr r12
blr
#
#~~~~~~~~~~~~~~#
# END ASSEMBLY #
#~~~~~~~~~~~~~~#
|
|
|
What to do next? (need some tips) |
Posted by: Vega - 07-18-2019, 01:40 PM - Forum: Site Advancement
- Replies (15)
|
|
If anybody has been paying attention, they knew that the MarioKartWii.com domain went into pendingRedemption period back in early June. This meant a 99% chance that by mid July (July 14 to be exact, when pendingDelete ends), anyone can have a change to get the domain. I have been monitoring this for awhile. I set up a few backorder services to try to 'drop-catch' it the moment the domain would be free.
Unfortunately, I did not get it. It appears some sort of 'spammer' got the domain. This person would buy up semi-popular domains and essentially not use them, the person doesn't even try to sell them for profit. So basically, that's the end of it.
I was planning on getting that domain and trying to expand these forums (the domain would easily catch more traffic) and who knows bring back the glory days of mariokartwii.com.
Since I didn't get the domain, plans have changed. So basically I need some tips.
- This site is mainly about MKWii Modding, ASM Coding, and Hacking. Should I shift the site to be MKWii Coding/Hacking/ASM only? Get rid of the other junk (TT's, MKW General, General Wii Softmodding)? This would may be best route since me and a few other members are the only people active here. The ASM Coding scene is just me and you guys essentially. I can add other stuff such as Custom Tracks, Textures, Music, but the wiki tockdom pretty much already has that handled.
- Or do I try to expand these forums to include 'MKWii-anything'? The domain I have right now is still great, don't get me wrong. This is the 2nd best domain to have after mariokartwii.com. But a lot of noobies/new-comers actually don't know 'mkwii' is short for mariokartwii, hence why traffic doesn't pick up here.
So to the few active members here, hit me up with some ideas. Nothing is really out of limits.
|
|
|
Exception Recovery [Star] |
Posted by: Star - 07-14-2019, 07:32 PM - Forum: Online Non-Item
- Replies (5)
|
|
Exception Recovery [Star]
This code allows program execution to continue if a DSI Exception occurs.
(Region Free)
06000300 00000018
7C7043A6 7C7A02A6
38630004 7C7A03A6
7C7042A6 4C000064
Code Creator: Star
|
|
|
Camera Toggle [JoshuaMK] |
Posted by: JoshuaMK - 07-08-2019, 02:43 AM - Forum: Visual & Sound Effects
- Replies (10)
|
|
Camera Toggle [JoshuaMK]
Press a mapped button of choice to switch the camera between 3 modes.
(NTSC-U)
C27E4C9C 00000011
3D608034 807FEE20
616BXXXX A16B0000
3D808170 717DYYYY
2C1DYYYY 40A20014
896C0F00 396B0001
280B000F 41A00008
39600000 996C0F00
2C0B0002 40820048
3D808088 618CDBD0
A16C0000 2C0B3F50
41820018 2C0B3FB0
4182001C 39603F50
3BA03ECD 48000018
39603FB8 3BA03F20
4800000C 39603F80
3BA03F00 B16C0000
B3AC0014 00000000
045979c4 60000000
(PAL)
C27EEFAC 00000011
3D608034 807F3618
616BXXXX A16B0000
3D808170 717DYYYY
2C1DYYYY 40A20014
896C0F00 396B0001
280B000F 41A00008
39600000 996C0F00
2C0B0002 40820048
3D808089 618C2310
A16C0000 2C0B3F50
41820018 2C0B3FB0
4182001C 39603F50
3BA03ECD 48000018
39603FB8 3BA03F20
4800000C 39603F80
3BA03F00 B16C0000
B3AC0014 00000000
045A29FC 60000000
(NTSC-J)
C27EE618 00000011
3D608034 807F2678
616BXXXX A16B0000
3D808170 717DYYYY
2C1DYYYY 40A20014
896C0F00 396B0001
280B000F 41A00008
39600000 996C0F00
2C0B0002 40820048
3D808089 618C1960
A16C0000 2C0B3F50
41820018 2C0B3FB0
4182001C 39603F50
3BA03ECD 48000018
39603FB8 3BA03F20
4800000C 39603F80
3BA03F00 B16C0000
B3AC0014 00000000
045A237C 60000000
(NTSC-K)
C27DD36C 00000011
3D608033 807F1C58
616BXXXX A16B0000
3D808170 717DYYYY
2C1DYYYY 40A20014
896C0F00 396B0001
280B000F 41A00008
39600000 996C0F00
2C0B0002 40820048
3D808088 618C0718
A16C0000 2C0B3F50
41820018 2C0B3FB0
4182001C 39603F50
3BA03ECD 48000018
39603FB8 3BA03F20
4800000C 39603F80
3BA03F00 B16C0000
B3AC0014 00000000
04590A54 60000000
Guide
Note: This code makes use of user input. See this guide for reference on filling in values: https://mkwii.com/showthread.php?tid=44
XXXX = Controller Address
YYYY = Button that changes camera view
Suggested Values:
(GCN)
YYYY = 0880 - Y
[b](Wavebird GCN) [/b]
YYYY = 0800 - Y
(Classic Controller)
YYYY = 8000 - Y
[b](Wii Remote + Nunchuck) [/b]
YYYY = 1000 - ( - )
[b](Wii Wheel) [/b]
YYYY = 1000 - ( - )
#########
#Source ASM#
#########
###############
#Register Safety Notes#
###############
#r29 is safe to use as it gets overwritten by a mulli instruction the line after this code.
.set region, ' ' #Fill in E, P, J, or K within the quotes for your region when Compiling! Lowercase letters can also be used.
.if (region == 'E' || region == 'e') # RMCE
lis r11, 0x8034
lwz r3, -0x11E0 (r31)
.elseif (region == 'P' || region == 'p') # RMCP
lis r11, 0x8034
lwz r3, 0x3618 (r31)
.elseif (region == 'J' || region == 'j') # RMCJ
lis r11, 0x8034
lwz r3, 0x2678 (r31)
.elseif (region == 'K' || region == 'k') # RMCK
lis r11, 0x8033
lwz r3, 0x1C58 (r31)
.else # Invalid Region
.abort
.endif
ori r11, r11, 0x3e80 #NTSC-U GCN used just for compilation
lhz r11, 0 (r11)
lis r12, 0x8170 #Set Mem81 address, 1st Half, used offset for 2nd half
andi. r29, r11, 0x0880 #Y button used just for compilation
cmpwi r29, 0x0880 #Check if button is at least pressed
bne+ reset_timer #Reset Timer Back to 0 if no Y Button Press
lbz r11, 0x0F00 (r12) #Load Timer Value
addi r11, r11, 1 #Increment Timer
cmplwi r11, 15
blt+ dont_reset_timer #If not greater than 15, do NOT reset timer
reset_timer:
li r11, 0 #Once timer hits 15, reset it
dont_reset_timer:
stb r11, 0x0F00 (r12) #Store updated Timer Value
cmpwi r11, 2 #Check if value is 2 (time to update camera)
bne- no_change #If not 2, skip already down to vannila instruction
#Set Camera Height Address
.if (region == 'E' || region == 'e') # RMCE
lis r12, 0x8088
ori r12, r12, 0xDBD0
.elseif (region == 'P' || region == 'p') # RMCP
lis r12, 0x8089
ori r12, r12, 0x2310
.elseif (region == 'J' || region == 'j') # RMCJ
lis r12, 0x8089
ori r12, r12, 0x1960
.elseif (region == 'K' || region == 'k') # RMCK
lis r12, 0x8088
ori r12, r12, 0x0718
.else # Invalid Region
.abort
.endif
lhz r11, 0 (r12)
cmpwi r11, 0x3f50 #Compare Camera Height to "Close Up" Setting
beq- far_out #If Equal, Set Camera to "Far Out"
cmpwi r11, 0x3fb0 #Compare Camera Height to "Far Out" Setting
beq- normal_value #If Equal, Set Camera to "Normal"
li r11, 0x3f50
li r29, 0x3ecd
b store_value
far_out:
li r11, 0x3fb8
li r29, 0x3f20
b store_value
normal_value:
li r11, 0x3f80
li r29, 0x3f00
store_value:
sth r11, 0 (r12) #Store New Camera Height to Proper RAM Address
sth r29, 0x0014 (r12) #Offset 0x0014 From Camera Height is Camera Distance. Store Camera Distance There.
no_change:
Code Creator: JoshuaMK
Code Contributors: Jae (Camera Height Address), davidevgen (Camera Distance Address), Vega (Optimized Source)
|
|
|
Scalable Gravity [JoshuaMK] |
Posted by: JoshuaMK - 07-06-2019, 09:20 AM - Forum: Offline Non-Item
- Replies (4)
|
|
Scalable Gravity [JoshuaMK]
Allows you to make the gravity greater or lesser using the mapped buttons of your choice. Gravity grows and shrinks exponentially.
(NTSC-U)
C2590400 0000000D
819F0000 3D608034
616BXXXX A16B0000
716AUUUU 2C0AUUUU
41820038 716ADDDD
2C0ADDDD 41820024
716AUUUU 2C0AUUUU
41820028 716ADDDD
2C0ADDDD 40A20024
398CE000 48000018
3D8CFFFF 48000010
3D8C0001 48000008
398C2000 919F0000
C03F0000 00000000
(PAL)
C2596C24 0000000D
819F0000 3D608034
616BXXXX A16B0000
716AUUUU 2C0AUUUU
41820038 716ADDDD
2C0ADDDD 41820024
716AUUUU 2C0AUUUU
41820028 716ADDDD
2C0ADDDD 40A20024
398CE000 48000018
3D8CFFFF 48000010
3D8C0001 48000008
398C2000 919F0000
C03F0000 00000000
(NTSC-J)
C25965A4 0000000D
819F0000 3D608034
616BXXXX A16B0000
716AUUUU 2C0AUUUU
41820038 716ADDDD
2C0ADDDD 41820024
716AUUUU 2C0AUUUU
41820028 716ADDDD
2C0ADDDD 40A20024
398CE000 48000018
3D8CFFFF 48000010
3D8C0001 48000008
398C2000 919F0000
C03F0000 00000000
(NTSC-K)
C2584C7C 0000000D
819F0000 3D608033
616BXXXX A16B0000
716AUUUU 2C0AUUUU
41820038 716ADDDD
2C0ADDDD 41820024
716AUUUU 2C0AUUUU
41820028 716ADDDD
2C0ADDDD 40A20024
398CE000 48000018
3D8CFFFF 48000010
3D8C0001 48000008
398C2000 919F0000
C03F0000 00000000
Guide
Note: This code makes use of user input. See this guide for reference on filling in values: https://mkwii.com/showthread.php?tid=44
XXXX = Controller Address
UUUU = Button(s) that increase gravity rapidly
DDDD = Button(s) that decrease gravity rapidly
UUUU = Button(s) that increase gravity slowly
DDDD = Button(s) that decrease gravity slowly
Suggested Values:
(GCN)
UUUU = 0882 - Y + D-Pad Right
DDDD = 0881 - Y + D-Pad Left
UUUU = 0082 - D-Pad Right
DDDD = 0081 - D-Pad Left
(Wavebird GCN)
UUUU = 0802 - Y + D-Pad Right
DDDD = 0801 - Y + D-Pad Left
UUUU = 0002 - D-Pad Right
[b]DDDD = 0001 - D-Pad Left[/b]
(Classic Controller)
UUUU = 8020 - Y + D-Pad Right
DDDD = 0022 - Y + D-Pad Left
UUUU = 8000 - D-Pad Right
DDDD = 0002 - D-Pad Left
(Wii Remote + Nunchuck)
UUUU = 1002 - ( - ) + D-Pad Right
DDDD = 1001 - ( - ) + D-Pad Left
UUUU = 0002 - D-Pad Right
[b]DDDD = 0001 - D-Pad Left[/b]
(Wii Wheel)
UUUU = 1004 - ( - ) + D-Pad Down
DDDD = 1008 - ( - ) + D-Pad Up
UUUU = 0004 - D-Pad Down
[b]DDDD = 0008 - D-Pad Up[/b]
#########
#Source ASM#
#########
#############
#Load Gravity Value#
#############
lwz r12, 0 (r31)
#######################
#Get Controller Address Value GCN#
#######################
lis r11, 0x8034
ori r11, r11, 0x8200
lhz r11, 0 (r11)
#################
#Compare Value and Beq#
#################
andi. r10, r11, 0x0882
cmpwi r10, 0x0882
beq- add_lots_gravity
andi. r10, r11, 0x0881
cmpwi r10, 0x0881
beq- sub_lots_gravity
andi. r10, r11, 0x0082
cmpwi r10, 0x0082
beq- add_gravity
andi. r10, r11, 0x0081
cmpwi r10, 0x0081
bne+ dont_touch
######################################
#Add or Sub a Little Bit Of Gravity Each Frame Input is Held#
#####################################
subi r12, r12, 0x2000
b the_end
sub_lots_gravity:
subis r12, r12, 1
b the_end
add_lots_gravity:
addis r12, r12, 1
b the_end
add_gravity:
addi r12, r12, 0x2000
the_end:
stw r12, 0 (r31)
dont_touch:
lfs f1, 0 (r31)
Code Creator: JoshuaMK
Code Contributors: Vega (Optimized source ASM), Hamster35000vr (Gravity RAM address used to find code that sets gravity value)
|
|
|
|