module

Swanium::Core::V30AddressDecoder

Stateless V30 ModRM and effective-address decoder. It owns instruction stream consumption and address formation, while Cpu retains instruction semantics and commits the returned instruction pointer.

Class methods

decode_effective_offset(bus : MemoryBus, registers : Registers) : Tuple(UInt8, UInt16, UInt16)

LEA needs the raw offset rather than a segment-resolved address.

Source
decode_mod_rm(bus : MemoryBus, registers : Registers, segment_override : UInt16 | Nil) : Tuple(ModRm, UInt16)
Source
extended_register_offset(registers : Registers, rm : UInt8) : UInt16
Source