Method | Description | |
---|---|---|
Memory ( |
||
read16 ( ushort addr, bool pageWrap = false ) : ushort |
Upper and lower bytes of val are swapped after reading.
|
|
read8 ( ushort addr ) : byte | ||
write16 ( ushort addr, ushort val ) : void |
Upper and lower bytes of val are swapped before writing.
|
|
write8 ( ushort addr, byte val ) : void |
Write a byte to system memory. This might be internal RAM ($0000-$07FF), or could refer to memory-mapped devices, e.g. mappers, APU, PPU, etc.
|
public Memory ( |
||
console | ||
return | System |
public read16 ( ushort addr, bool pageWrap = false ) : ushort | ||
addr | ushort | |
pageWrap | bool | |
return | ushort |
public write16 ( ushort addr, ushort val ) : void | ||
addr | ushort | |
val | ushort | |
return | void |
public write8 ( ushort addr, byte val ) : void | ||
addr | ushort | The 16-bit address at which to set a value. |
val | byte | The byte to write at the given location. |
return | void |