Changes

Jump to navigation Jump to search
0x80003164
| 0x0D000000
|
| [[Hardware /Hollywood_Registers|Hollywood Registers ]] (shared with Starlet)
|}
The GameCube has one 24MB bank of 1T SRAM that is used for all code and data, spread across two external chips; there is also a chip containing 16MB of ARAM, which could be used for storing data. The Wii moves all 24MB of 1T-SRAM (referred to as MEM1) inside the Hollywood package, and adds an additional 64MB of GDDR3 RAM (MEM2). During normal operation, IOS reserves the upper 12-16MB of MEM2 for its own use; the rest can freely be used for code or data by running PPC code. MEM1 is slightly faster than MEM2. The IOS Heap range is usually 0x933E0000-0x93400000 it is , as shown in registers 0x80003130(Start), 0x800031300x80003134(End). Pointers in this area are often passed back and forth between IOS and code running on Broadway. The top of MEM2 memory is allocated to Starlet. You can IOS, and protected from access this memory by disabling memory protection via hardware some registers in [[Starlet]]. (See [[Starlet Register List]]. TODO).
'''Broadway / IOS Global Memory Locations'''
|-
| 0x80000000
| 64| 0x5253504530310x52535045| Game Code 'RSPE01RSPE' (Wii Sports)|-| 0x80000004| 2| 0x3031 (01)| Maker code
|-
| 0x80000060x80000006
| 1
| ?0| Disc IDNumber (multidisc games)
|-
| 0x80000070x80000007
| 1
| ?
| Disc Version
|-
| 0x80000080x80000008
| 1
| ?
| Disc Streaming flag
|-
| 0x80000090x80000009
| 1
| ?
| 0x8000001C
| 4
| ?0xC2339F3D
| Disc layout magic (GC)
|-
| 4
| 0x00000001
| Version (set by [[apploader]])
|-
| 0x80000028
| 0x00001394
| Maximum FST Size (varies in all games)
|-
| 0x80000044
| 4
| ?
| Exception Mask Address
|-
| 0x80000060
| 0x24
| Copyright code[http://hitmen.c02.at/files/yagcd/yagcd/chap4.html#sec4.2.1.3 Debugger Hook]| Hook is PPC assembler used by Debugger. If nothing is written to 0x60, SDK titles will write the 0x20 bytes of instructions automatically.|-| 0x800000D8| 4| ?| Current OSContext instance.|-| 0x800000DC| 4| ?| OSThread pointer, previously created thread.|-| 0x800000E0| 4| ?| OSThread pointer, most recently created thread.|-| 0x800000E4| 4| ?| Current thread pointer.
|-
| 0x800000EC
| 0x800000F4
| 4
| 0x000000000x817FDF80| BI2Pointer to data read from partition's bi2.bin, set by apploader
|-
| 0x800000F8
|
| Unused Exception Vector area often used for loader stubs and reloaders as this area is never cleared or used.
|-
| 0x80003040
| 4
| ?
| __OSInterrupt table.
|-
| 0x800030C8
| 4
| ?
| Related to Nintendo's dynamic linking system (REL). Pointer to the first loaded REL file.
|-
| 0x800030CC
| 4
| ?
| Related to Nintendo's dynamic linking system (REL). Pointer to the last loaded REL file.
|-
| 0x800030D0
| 4
| 0
| Pointer to a REL module name table, or 0. Added to the name offset in each REL file.
|-
| 0x800030D8
| 8
| 0x005498F053407000
| System time, measured as time since January 1st 2000 in units of 1/40500000th of a second.
|-
| 0x800030E4
| 2
| ?
| __OSPADButton. Apploader puts button state of GCN port 4 at game start here for Gamecube NR disc support
|-
| 0x800030E6
| 2
| ?
| DVD Device Code Address
|-
| 0x800030E8
| 4
| ?
| Debug Flags Address
|-
| 0x800030F0
| 0x00000000
| DOL Execute Parameters
|-
| 0x80003100
| 4
| ?
| Physical MEM1 size
|-
| 0x80003104
| 4
| ?
| Simulated MEM1 size
|-
| 0x80003110
| 4
| ?
| Heap pointer (end of usable memory by the game)
|-
| 0x80003118
| 4
| ?
| Physical MEM2 size
|-
| 0x8000311C
| 4
| ?
| Simulated MEM2 size
|-
| 0x80003130
| 0x0000FF16
| GDDR Vendor Code
|-
| 0x8000315C
| 4
| 0xdeadbeef
| During the boot process, 0x315c is first set to 0xdeadbeef by IOS in the boot_ppc syscall. The value is later partly overwritten by SDK titles.
|-
| 0x8000315D
| 1
| 0?
| "Enable legacy DI" mode (0x80 = yes)
|-
| 0x8000315E
| 2
| 0x0113
| "Devkit boot program version", written to by the system menu. The value carries over to disc games. 0x0113 appears to mean v1.13, which is the latest version of the boot program (found in System Menu 4.3).
|-
| 0x80003160
| 4
| 0x00000000
| GC (MIOS) mode flag?, set to 1 by [[boot2]] when [[MIOS]] triggers a shutdown; the System Menu reads this and turns off the console if it is set to 1 and [[:/title/00000001/00000002/data/state.dat|state.dat]] is set appropriately, with the message "Shutdown system from GC!".
|-
| 0x80003180
| 4
| 0x52535045
| Game ID 'RSPE' Wii Sports ID. If these 4 bytes don't match the ID at 80000000, offline WC24 mode in games is disabled.
|-
| 0x80003184
| 41| 0x800000000x80| Game ID addressApplication type. 0x80 for disc games, 0x81 for channels.|-| 0x80003186| 1| 0x00| Application type 2. Appears to be set to the when a game loads a channel (e.g. Mario Kart Wii loading the region select menu will result in this being 0x80 from the disc and the main application type being 0x81, or the Wii Fit channel transitioning to the Wii Fit disc will result in this being 0x81 and the main type being 0x80).
|-
| 0x80003188
| 4
| 0x00351011
| Expected Minimum IOS Versionversion (2 bytes for the major version, 2 bytes for the title version)
|-
| 0x8000318C
| 0x00000000
| Title Booted from NAND (Return Code)
|-
| 0x80003194
| 4
| 0x00000000
| While reading a disc, the system menu reads the first partition table (0x20 bytes from 0x00040020) and stores a pointer to the data partition entry. When launching the disc game, it copies the partition type to 0x3194. The partition type for data partitions is 0, so typically this location always has 0.
|-
| 0x80003198
| 4
| data partition offset
| While reading a disc, the system menu reads the first partition table (0x20 bytes from 0x00040020) and stores a pointer to the data partition entry. When launching the disc game, it copies the partition offset to 0x3198.
|-
| 0x8000319C
| 1
| 0x80
| Set by the apploader to 0x80 for single-layer discs and 0x81 for dual-layer discs (determined by whether 0x7ed40000 is the value at offset 0x30 in the partition's bi2.bin; it seems that that value is 0 for single-layer discs). Early titles' apploaders do not set it at all, leaving the value as 0. This controls the [[:/dev/di#0x8D_DVDLowUnencryptedRead|out-of-bounds Error #001 read]] for titles that do make such a read: they try to read at 0x7ed40000 for dual-layer discs and 0x460a0000 for single-layer discs.
|- style="background-color: #fdd;"
| 0x80003400
|}
Applications By convention, applications should use the 0x80003F00 - 0x81330000 area for executable code and data loaded as part of their ELF/DOL, while loaders should use from 0x81330000 onwards. Applications can use the loader area and MEM2 as data work space once they are running, but they should restrict the sections contained in the DOL or ELF to the executable area only, since MEM2 is reserved as work area for the loader at that time. To preserve "return to loader" functionality, applications should never use the 0x80001800-0x80003000 area. [[Category:HardwareOfficial hardware]]
282

edits

Navigation menu