class

GBA::Bus

Inherits Reference < Object

Constants

ACCESS_TIMING_TABLE = Slice[[1, 1, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2], [1, 1, 6, 1, 1, 2, 2, 1, 4, 4, 4, 4, 4, 4, 4, 4]]

Timings for rom are estimated for game compatibility.

Constructors

new(gba : GBA, bios_path : String)
Source

Instance methods

[](address : UInt32) : UInt8
Source
[]=(address : UInt32, value : UInt8) : Nil
Source
[]=(address : UInt32, value : UInt16) : Nil
Source
[]=(address : UInt32, value : UInt32) : Nil
Source
bios
Source
cycles
Source
cycles=(cycles : Int32)
Source
read_half(address : UInt32) : UInt16
Source
read_half_internal(address : UInt32) : UInt16
Source
read_half_rotate(address : UInt32) : UInt32
Source
read_half_signed(address : UInt32) : UInt32

On ARM7 aka ARMv4 aka NDS7/GBA: LDRH Rd,[odd] --> LDRH Rd,[odd-1] ROR 8 ;read to bit0-7 and bit24-31 LDRSH Rd,[odd] --> LDRSB Rd,[odd] ;sign-expand BYTE value

Source
read_open_bus_value(address : UInt32, _file = __FILE__) : UInt8
Source
read_word(address : UInt32) : UInt32
Source
read_word_rotate(address : UInt32) : UInt32
Source
wram_board
Source
wram_chip
Source