Swanium::Core::Registers
Inherits Struct < Value < Object
General-purpose and segment registers of the NEC V30.
The index methods intentionally use the 8086 ModRM encoding: 8-bit registers are AL, CL, DL, BL, AH, CH, DH, BH; 16-bit registers are AX, CX, DX, BX, SP, BP, SI, DI.
Constructors
new(ax : UInt16 = 0_u16, cx : UInt16 = 0_u16, dx : UInt16 = 0_u16, bx : UInt16 = 0_u16, sp : UInt16 = 0_u16, bp : UInt16 = 0_u16, si : UInt16 = 0_u16, di : UInt16 = 0_u16, cs : UInt16 = 0_u16, ds : UInt16 = 0_u16, ss : UInt16 = 0_u16, es : UInt16 = 0_u16, ip : UInt16 = 0_u16)
SourceInstance methods
ax
Sourceax=(ax : UInt16)
Sourcebp
Sourcebp=(bp : UInt16)
Sourcebx
Sourcebx=(bx : UInt16)
Sourcecs
Sourcecs=(cs : UInt16)
Sourcecx
Sourcecx=(cx : UInt16)
Sourcedi
Sourcedi=(di : UInt16)
Sourceds
Sourceds=(ds : UInt16)
Sourcedx
Sourcedx=(dx : UInt16)
Sourcees
Sourcees=(es : UInt16)
Sourceip
Sourceip=(ip : UInt16)
Sourcereg16(index : UInt8) : UInt16
Sourcereg8(index : UInt8) : UInt8
Sourceset_reg16(index : UInt8, value : UInt16) : Nil
Sourceset_reg8(index : UInt8, value : UInt8) : Nil
Sourceset_segment(index : UInt8, value : UInt16) : Nil
Sourcesi
Sourcesi=(si : UInt16)
Sourcesp
Sourcesp=(sp : UInt16)
Sourcess
Sourcess=(ss : UInt16)
Source