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 106 online users. » 0 Member(s) | 102 Guest(s) Applebot, Baidu, Bing, Google
|
Latest Threads |
Allow Pausing Before Race...
Forum: Offline Non-Item
Last Post: Vega
4 hours ago
» Replies: 0
» Views: 11
|
Top 10 Most Influential C...
Forum: Coding & Hacking General Discussion
Last Post: Vega
9 hours ago
» Replies: 2
» Views: 7,350
|
Show Ice Cube on Online P...
Forum: Online Non-Item
Last Post: _Ro
Yesterday, 08:23 AM
» Replies: 0
» Views: 34
|
CPU Control Cycler [Ro]
Forum: Offline Non-Item
Last Post: _Ro
Yesterday, 07:56 AM
» Replies: 7
» Views: 1,010
|
Thunder Cloud Effect Modi...
Forum: Offline; Item
Last Post: JerryHatrick
01-10-2025, 11:13 PM
» Replies: 11
» Views: 1,096
|
MKW Coder/Developer of th...
Forum: Coding & Hacking General Discussion
Last Post: Vega
01-10-2025, 09:10 PM
» Replies: 10
» Views: 13,844
|
Make it to 10,000
Forum: General Discussion
Last Post: Vega
01-10-2025, 08:15 PM
» Replies: 7,338
» Views: 5,671,318
|
Miniturbos and Inside Dri...
Forum: Coding & Hacking General Discussion
Last Post: JerryHatrick
01-10-2025, 09:54 AM
» Replies: 1
» Views: 859
|
Code request???
Forum: Code Support / Help / Requests
Last Post: DrTap
01-09-2025, 06:06 PM
» Replies: 3
» Views: 4,958
|
CPUs/Online Players Have ...
Forum: Visual & Sound Effects
Last Post: Zeraora
01-09-2025, 02:26 AM
» Replies: 2
» Views: 515
|
|
|
PowerPC - Quantized Floating Point Instructions |
Posted by: JimmyKazakhstan - 06-24-2021, 01:44 AM - Forum: Code Support / Help / Requests
- Replies (3)
|
|
This is a bit of an odd question but I thought I'd ask it here.
I'm asking this way in advance.
I'm currently in the process of writing my PowerPC For Dummies guide.
I eventually wanted to add the "psq" instruction types to the guide.
Is anyone familiar with them? Specifically the following instructions:
Code: psq_l
psq_st
psq_lu
psq_stu
psq_lx
psq_stx
psq_stux
psq_lux
ps_abs
ps_nabs
ps_merge00
ps_merge01
ps_merge10
ps_merge11
ps_cmpo0
ps_cmpo1
ps_cmpu0
ps_cmpu1
ps_muls0
ps_muls1
ps_msub
ps_res
ps_rsqrte
ps_sel
The only mention of them that isn't from a dolphin/cemu update page I've been able to find online is this page.
But even on that page the explanations given are extremely ~removed~ (unclear)
If anyone is familiar with how any of these work, would you mind explaining the basic function of it? I would love to add it all into the guide!
|
|
|
PowerPC For Dummies: A simplified guide to understanding the PowerPC Instruction Set |
Posted by: JimmyKazakhstan - 06-22-2021, 07:48 PM - Forum: Resources and References
- Replies (24)
|
|
I'm the type of person who has an extremely tough time learning complicated things unless every single aspect of it is explained to me in full detail. PowerPC Instructions being one of them, you would not believe the struggles I had trying to learn how the "load word zero" and "store word" instructions worked.
But the point is, a lot of other people have these issues as well. I know that there are a lot of people who have wanted to make codes for Wii games but stopped after not having any clue on how the instructions worked. Even some of the "simple" guides I have found are complex and assume you know exactly how it's supposed to work. Even some of the examples make no sense, to me at least. But I've spent a very long time trying to learn the very basic syntaxes of how some of the instructions work. And I've actually made a lot of progress.
So I have put together a page called "PowerPC For Dummies". It's a page that lists a very large majority of the instructions and simplifies them to the point where (for the lack of a better sentence) even braindead individuals such as myself can understand!
Of course, it isn't done yet, but I have a fair amount of the first set complete. And I plan to add more instructions and examples to it!
I am posting it here because I thought that it could possibly help some people. (I'll be honest, even with the guides on this site, there are still some things I have trouble understanding).
I'm aware that the register order is often "rD --> rA, etc." but for the sake of simplicity the order on the guide is based on the order of the registers (ex: First Register in an instruction = Register A, Second = Register B, etc.)
Here is the link to the guide!
PowerPC For Dummies! - A Simplified PowerPC Instruction List
If anything in the guide is wrong, let me know and I will change it.
|
|
|
Disable Multi Channel BRSTMs [CLF78] |
Posted by: CLF78 - 06-22-2021, 10:13 AM - Forum: Visual & Sound Effects
- No Replies
|
|
This code disables channel switching for track music, removing the requirement of multi-channel BRSTMs in the slots that previously needed it. Hint: You can disable channel switching altogether by inserting a single BLR instead.
NTSC-U
C26F5BC4 00000004
3CC08071 60C695F0
7CE802A6 7CE63850
28071464 4CA10020
9421FFE0 00000000
PAL
C26FAB2C 00000004
3CC08071 60C61724
7CE802A6 7CE63850
28071464 4CA10020
9421FFE0 00000000
NTSC-J
C26FA198 00000004
3CC08071 60C68C5C
7CE802A6 7CE63850
28071464 4CA10020
9421FFE0 00000000
NTSC-K
C26E8ED4 00000004
3CC08070 60C67998
7CE802A6 7CE63850
28071464 4CA10020
9421FFE0 00000000
Source:
Code: # Address ports
.set REGION, ''
.if (REGION == 'P' || REGION == 'p')
.set FirstCall, 0x807195F0
.elseif (REGION == 'U' || REGION == 'u' || REGION == 'E' || REGION == 'e')
.set FirstCall, 0x80711724
.elseif (REGION == 'J' || REGION == 'j')
.set FirstCall, 0x80718C5C
.elseif (REGION == 'K' || REGION == 'k')
.set FirstCall, 0x80707998
.else
.err
.endif
# Get address of earliest call in memory we want to kill
lis r6, FirstCall@h
ori r6, r6, FirstCall@l
# Get caller
mflr r7
# Exit function if the caller is in the range FirstCall+0x1464
sub r7, r7, r6
cmplwi r7, 0x1464
blelr+
# Original instruction
stwu sp, -0x20(sp)
Code created by: CLF78
|
|
|
Disable Toad's Factory Music Delay [CLF78] |
Posted by: CLF78 - 06-22-2021, 10:01 AM - Forum: Visual & Sound Effects
- No Replies
|
|
This code makes the game play the Toad's Factory BRSTM starting from the actual beginning of the music. Requires tZ's Disable TF Music Reset code to prevent the music from cutting off.
NTSC-U
0270A544 00004800
0270A580 00004800
0270A5D8 00004800
0270A614 00004800
PAL
02711FE8 00004800
02712024 00004800
0271207C 00004800
027120B8 00004800
NTSC-J
02711654 00004800
02711690 00004800
027116E8 00004800
02711724 00004800
NTSC-K
02700390 00004800
027003CC 00004800
02700424 00004800
02700460 00004800
Code created by: CLF78
|
|
|
MKW:BR 200cc |
Posted by: Zeraora - 06-21-2021, 08:15 PM - Forum: Incomplete & Outdated Codes
- No Replies
|
|
This version of 200cc is a bit different from the one used in CTGP. It replaces over 150cc and has features like Faster Shells and Faster Cannons. It also replaces 100cc with 150cc and 50cc with 100cc.
Credits:
JoshuaMK - Max Speed Modifier (used bottom portion of code), CTGP 200cc Dynamic Gravity, CTGP 200cc
Supastarrio - Can Always Drift (modified so it can be used to drift at only lower speeds)
stebler - Brake Drifting, CTGP 200cc (used 6 lines of)
davidevgen - Bullet Bill Speed Modifier, Deploy Green Shell Speed Modifier
RoGamer - Cannon Speed Modifier
Leseratte - Engine Class Modifier
_tZ - CTGP 200cc
MrBean35000vr - CTGP 200cc
NTSC-U:
048B1414 3F666666
048B1418 3F800000
048B141C 3FC00000
C0000000 0000000A
3D808000 896C5F27
3D40809B 2C0B00EC
6149D728 41820024
2C0B0010 6149C788
41820018 2C0B0054
3D20809A 6129BD68
41820008 61498F68
81290000 2C090000
4D820020 81690B6C
996C04CF 4E800020
C2571CF4 00000002
3D8042F0 91891134
C0091134 00000000
048B125C 3F0CCCCD
048A10EC 43820000
048A114C 43020000
048A115C 491C4000
045801FC D00300F4
04590400 C03F0000
048B1138 43110000
048A12E4 42AA0000
048B1428 43FA0000
048B1438 43FA0000
048B1448 42F00000
C251BEA0 00000001
B11D0004 00000000
C2574620 00000001
2C000001 00000000
280004CE 00000002
C2571CF4 00000002
3D80437A 91891134
C0091134 00000000
048B125C 3E99999A
048A10EC 43C30000
048A114C 43430000
048A115C 496A6000
C25AA60C 00000003
48000009 3FC00000
7D8802A6 C04C0000
60000000 00000000
C25801FC 00000002
3D808142 D00300F4
D00C0800 00000000
C2590400 00000007
3D608142 3C804078
908B0804 C14B0804
C1AB0800 EDAD02B2
C03F0000 FD400890
EC21682A FF815040
409C0008 FC205090
60000000 00000000
048B1138 43598000
048A12E4 42FF0000
048B1428 443B8000
048B1438 443B8000
048B1448 43340000
C251BEA0 00000006
55040739 41820020
A09C0090 548406B5
41820014 A09C0090
548405AD 41820008
61080010 B11D0004
60000000 00000000
C251B1EC 00000005
54C40739 41820018
54640673 41820010
546405AD 41820008
60C60010 5464073B
60000000 00000000
C2735E6C 00000005
57E00739 41820018
5460077B 41820010
5460056B 41820008
63FF0010 B3FC0004
60000000 00000000
C2736200 00000006
54040739 41820020
A09C0002 548405AD
41820014 A09C0002
5484056B 41820008
60000010 B01B0004
60000000 00000000
C258E1CC 00000003
540307FE 5400E7FE
68000001 7C001839
60000000 00000000
045776E8 60000000
C2574620 00000002
2C000001 41820008
548307FF 00000000
E0000000 80008000
PAL:
048B5CD4 3F666666
048B5CD8 3F800000
048B5CDC 3FC00000
C0000000 0000000A
3D808000 896C5F27
3D40809B 2C0B00EC
6149D728 41820024
2C0B0010 6149C788
41820018 2C0B0054
3D20809A 6129BD68
41820008 61498F68
81290000 2C090000
4D820020 81690B6C
996C04CF 4E800020
C2578558 00000002
3D8042F0 91891134
C0091134 00000000
048B5B1C 3F0CCCCD
048A5BC4 43820000
048A5C24 43020000
048A5C34 491C4000
04586A20 D00300F4
04596C24 C03F0000
048B59F8 43110000
048A5DBC 42AA0000
048B5CE8 43FA0000
048B5CF8 43FA0000
048B5D08 42F00000
C2520314 00000001
B11D0004 00000000
C257AE84 00000001
2C000001 00000000
280004CE 00000002
C2578558 00000002
3D80437A 91891134
C0091134 00000000
048B5B1C 3E99999A
048A5BC4 43C30000
048A5C24 43430000
048A5C34 496A6000
C25B5534 00000003
48000009 3FC00000
7D8802A6 C04C0000
60000000 00000000
C2586A20 00000002
3D808142 D00300F4
D00C0800 00000000
C2596C24 00000007
3D608142 3C804078
908B0804 C14B0804
C1AB0800 EDAD02B2
C03F0000 FD400890
EC21682A FF815040
409C0008 FC205090
60000000 00000000
048B59F8 43598000
048A5DBC 42FF0000
048B5CE8 443B8000
048B5CF8 443B8000
048B5D08 43340000
C2520314 00000006
55040739 41820020
A09C0090 548406B5
41820014 A09C0090
548405AD 41820008
61080010 B11D0004
60000000 00000000
C251F660 00000005
54C40739 41820018
54640673 41820010
546405AD 41820008
60C60010 5464073B
60000000 00000000
C2745D38 00000005
57E00739 41820018
5460077B 41820010
5460056B 41820008
63FF0010 B3FC0004
60000000 00000000
C27460CC 00000006
54040739 41820020
A09C0002 548405AD
41820014 A09C0002
5484056B 41820008
60000010 B01B0004
60000000 00000000
C25949F0 00000003
540307FE 5400E7FE
68000001 7C001839
60000000 00000000
0457DF4C 60000000
C257AE84 00000002
2C000001 41820008
548307FF 00000000
E0000000 80008000
NTSC-J (Untested):
048B4E34 3F666666
048B4E38 3F800000
048B4E3C 3FC00000
C0000000 0000000A
3D808000 896C5F27
3D40809B 2C0B00EC
6149D728 41820024
2C0B0010 6149C788
41820018 2C0B0054
3D20809A 6129BD68
41820008 61498F68
81290000 2C090000
4D820020 81690B6C
996C04CF 4E800020
C2577ED8 00000002
3D8042F0 91891134
C0091134 00000000
048B4C7C 3F0CCCCD
048A4D24 43820000
048A4D84 43020000
048A4D94 491C4000
045863A0 D00300F4
045965A4 C03F0000
048B4B58 43110000
048A4F1C 42AA0000
048B4E48 43FA0000
048B4E58 43FA0000
048B4E68 42F00000
C251FC94 00000001
B11D0004 00000000
C257A804 00000001
2C000001 00000000
280004CE 00000002
C2577ED8 00000002
3D80437A 91891134
C0091134 00000000
048B4C7C 3E99999A
048A4D24 43C30000
048A4D84 43430000
048A4D94 496A6000
C25B4EB4 00000003
48000009 3FC00000
7D8802A6 C04C0000
60000000 00000000
C25863A0 00000002
3D808142 D00300F4
D00C0800 00000000
C25965A4 00000007
3D608142 3C804078
908B0804 C14B0804
C1AB0800 EDAD02B2
C03F0000 FD400890
EC21682A FF815040
409C0008 FC205090
60000000 00000000
048B4B58 43598000
048A4F1C 42FF0000
048B4E48 443B8000
048B4E58 443B8000
048B4E68 43340000
C251FC94 00000006
55040739 41820020
A09C0090 548406B5
41820014 A09C0090
548405AD 41820008
61080010 B11D0004
60000000 00000000
C251EFE0 00000005
54C40739 41820018
54640673 41820010
546405AD 41820008
60C60010 5464073B
60000000 00000000
C27453A4 00000005
57E00739 41820018
5460077B 41820010
5460056B 41820008
63FF0010 B3FC0004
60000000 00000000
C2745738 00000006
54040739 41820020
A09C0002 548405AD
41820014 A09C0002
5484056B 41820008
60000010 B01B0004
60000000 00000000
C2594370 00000003
540307FE 5400E7FE
68000001 7C001839
60000000 00000000
0457D8CC 60000000
C257A804 00000002
2C000001 41820008
548307FF 00000000
E0000000 80008000
NTSC-K (Untested):
048A414C 3F666666
048A4150 3F800000
048A4154 3FC00000
C0000000 0000000A
3D808000 896C5F27
3D40809B 2C0B00EC
6149D728 41820024
2C0B0010 6149C788
41820018 2C0B0054
3D20809A 6129BD68
41820008 61498F68
81290000 2C090000
4D820020 81690B6C
996C04CF 4E800020
C25665B0 00000002
3D8042F0 91891134
C0091134 00000000
048A3F94 3F0CCCCD
04894024 43820000
04894084 43020000
04894094 491C4000
04574A78 D00300F4
04584C7C C03F0000
048A3E70 43110000
0489421C 42AA0000
048A4160 43FA0000
048A4170 43FA0000
048A4180 42F00000
C250E338 00000001
B11D0004 00000000
C2568EDC 00000001
2C000001 00000000
280004CE 00000002
C25665B0 00000002
3D80437A 91891134
C0091134 00000000
048A3F94 3E99999A
04894024 43C30000
04894084 43430000
04894094 496A6000
C25A358C 00000003
48000009 3FC00000
7D8802A6 C04C0000
60000000 00000000
C2574A78 00000002
3D808142 D00300F4
D00C0800 00000000
C2584C7C 00000007
3D608142 3C804078
908B0804 C14B0804
C1AB0800 EDAD02B2
C03F0000 FD400890
EC21682A FF815040
409C0008 FC205090
60000000 00000000
048A3E70 43598000
0489421C 42FF0000
048A4160 443B8000
048A4170 443B8000
048A4180 43340000
C250E338 00000006
55040739 41820020
A09C0090 548406B5
41820014 A09C0090
548405AD 41820008
61080010 B11D0004
60000000 00000000
C250D684 00000005
54C40739 41820018
54640673 41820010
546405AD 41820008
60C60010 5464073B
60000000 00000000
C27340F8 00000005
57E00739 41820018
5460077B 41820010
5460056B 41820008
63FF0010 B3FC0004
60000000 00000000
C273448C 00000006
54040739 41820020
A09C0002 548405AD
41820014 A09C0002
5484056B 41820008
60000010 B01B0004
60000000 00000000
C2582A48 00000003
540307FE 5400E7FE
68000001 7C001839
60000000 00000000
0456BFA4 60000000
C2568EDC 00000002
2C000001 41820008
548307FF 00000000
E0000000 80008000
|
|
|
Coin X-ray [1superchip] |
Posted by: 1superchip - 06-16-2021, 01:43 AM - Forum: Time Trials & Battle
- No Replies
|
|
Coin X-ray [1superchip]
This code allows the user to see coins through walls and other materials.
NTSC-U
0086df57 00000007
PAL
0087ACAF 00000007
NTSC-J
0087A31B 00000007
NTSC-K
0086906F 00000007
Code Creator: 1superchip
|
|
|
Default Vehicle Selection Modifier [CLF78] |
Posted by: CLF78 - 06-15-2021, 01:41 PM - Forum: Offline Non-Item
- No Replies
|
|
This code lets you pick the default vehicle for all players when first loading the vehicle selection screen (if the character picks allow it).
NTSC-U
C25CE338 00000002
398000XX 918A013C
60000000 00000000
025CE3B0 0000918A
PAL
C25E4114 00000002
398000XX 918A013C
60000000 00000000
025E418C 0000918A
NTSC-J
C25E39F0 00000002
398000XX 918A013C
60000000 00000000
025E3A68 0000918A
NTSC-K
C25D22B0 00000002
398000XX 918A013C
60000000 00000000
025D2328 0000918A
XX Values:
00 = Standard Kart S
01 = Standard Kart M
02 = Standard Kart L
03 = Booster Seat
04 = Classic Dragster
05 = Offroader
06 = Mini Beast
07 = Wild Wing
08 = Flame Flyer
09 = Cheep Charger
0A = Super Blooper
0B = Piranha Prowler
0C = Tiny Titan
0D = Daytripper
0E = Jetsetter
0F = Blue Falcon
10 = Sprinter
11 = Honeycoupe
12 = Standard Bike S
13 = Standard Bike M
14 = Standard Bike L
15 = Bullet Bike
16 = Mach Bike
17 = Flame Runner
18 = Bit Bike
19 = Sugarscoot
1A = Wario Bike
1B = Quacker
1C = Zip Zip
1D = Shooting Star
1E = Magikruiser
1F = Sneakster
20 = Spear
21 = Jet Bubble
22 = Dolphin Dasher
23 = Phantom
Code created by: CLF78
|
|
|
Show Battle Map Icons [CLF78] |
Posted by: CLF78 - 06-14-2021, 10:35 PM - Forum: Visual & Sound Effects
- No Replies
|
|
This code makes the game show minimap icons for Wigglers and Rolling Chomps in any game mode.
NTSC-U
00887BC7 00000001
PAL
0088BFF7 00000001
NTSC-J
0088B663 00000001
NTSC-K
0087A3B7 00000001
Code created by: CLF78
|
|
|
Accurate Item Roulette [CLF78] |
Posted by: CLF78 - 06-14-2021, 08:42 AM - Forum: Online; Item
- Replies (3)
|
|
This code makes the item roulette only show items you can actually get. Works both online and offline.
NTSC-U
C27ACE70 00000009
3D80809C 818C8F70
818C0018 398CFFFF
7D8560AE 3CC0809C
80C6EE20 80C60014
1CEC0248 7CC63A14
81060054 88C60019
38E00001 3D80807A
618CC9CC 7D8903A6
4E800420 00000000
PAL
C27BB8D0 00000009
3D80809C 818CD730
818C0018 398CFFFF
7D8560AE 3CC0809C
80C63618 80C60014
1CEC0248 7CC63A14
81060054 88C60019
38E00001 3D80807B
618CB42C 7D8903A6
4E800420 00000000
NTSC-J
C27BAF3C 00000009
3D80809C 818CC790
818C0018 398CFFFF
7D8560AE 3CC0809C
80C62678 80C60014
1CEC0248 7CC63A14
81060054 88C60019
38E00001 3D80807B
618CAA98 7D8903A6
4E800420 00000000
NTSC-K
C27A9C90 00000009
3D80809B 818CBD70
818C0018 398CFFFF
7D8560AE 3CC0809B
80C61C58 80C60014
1CEC0248 7CC63A14
81060054 88C60019
38E00001 3D80807A
618C97EC 7D8903A6
4E800420 00000000
Source:
Code: # Hook = 0x807BB8D0 PAL, 0x807ACE70 NTSC-U, 0x807BAF3C NTSC-J, 0x807A9C90 NTSC-K
# Address ports
.set REGION, ''
.if (REGION == 'P' || REGION == 'p')
.set DecideItem, 0x807BB42C
.set ItemHolder, 0x809C3618
.set Raceinfo, 0x809BD730
.elseif (REGION == 'U' || REGION == 'u' || REGION == 'E' || REGION == 'e')
.set DecideItem, 0x807AC9CC
.set ItemHolder, 0x809BEE20
.set Raceinfo, 0x809B8F70
.elseif (REGION == 'J' || REGION == 'j')
.set DecideItem, 0x807BAA98
.set ItemHolder, 0x809C2678
.set Raceinfo, 0x809BC790
.elseif (REGION == 'K' || REGION == 'k')
.set DecideItem, 0x807A97EC
.set ItemHolder, 0x809B1C58
.set Raceinfo, 0x809ABD70
.else
.err
.endif
# Function Args:
# r3 = ItemSlotData (already filled)
# r4 = Itembox setting (already filled)
# r5 = Position (already filled)
# r6 = IsHuman
# r7 = Unk (usually always 1)
# r8 = ItemHolderPlayer
# Get pid from position
lis r12, Raceinfo@ha
lwz r12, Raceinfo@l(r12)
lwz r12, 0x18(r12)
subi r12, r12, 1
lbzx r12, r5, r12
# Get IsHuman value and ItemHolderPlayer
lis r6, ItemHolder@ha
lwz r6, ItemHolder@l(r6)
lwz r6, 0x14(r6)
mulli r7, r12, 0x248
add r6, r6, r7
lwz r8, 0x54(r6)
lbz r6, 0x19(r6)
# Set r7 to 1
li r7, 1
# Call function (does not return)
lis r12, DecideItem@h
ori r12, r12, DecideItem@l
mtctr r12
bctr
Code created by: CLF78
|
|
|
Vehicle Restriction Modifier [CLF78] |
Posted by: CLF78 - 06-13-2021, 11:50 AM - Forum: Online Non-Item
- No Replies
|
|
This code lets you enable vehicle restrictions in non-GP modes.
NTSC-U
008286CF 0000000X
PAL
008455A7 0000000X
NTSC-J
00844C13 0000000X
NTSC-K
00833967 0000000X
X Values:
0 = Karts Only
1 = Bikes Only
2 = All Vehicles
Code created by: CLF78
|
|
|
|