Swanium::Core::Cpu
Inherits Reference < Object
Synchronous NEC V30 execution state. The opcode subset here establishes the 8086-compatible data, stack, ALU, and branch paths used by the first headless programs; unsupported instructions stop deterministically.
Constants
Constructors
Instance methods
Consumes the one-instruction maskable-interrupt delay following STI and SS loads. Called by the machine only at instruction boundaries.
Register and flag objects remain observable for instruction tracing
and debugger views, but replacing either object would bypass restore
and make CPU snapshots non-atomic.
Accept an interrupt through the standard V30 real-mode vector table. Device masking is owned by the hardware bus; this method deliberately also serves software interrupts and exceptions.
Long REP strings are interruptible on the V30. The scanline-framed driver executes the string atomically, so it supplies this saved IP to make IRET restart the prefix/opcode with its remaining CX/SI/DI state.
POPF/IRET enabling TF suppress INT 1 at the immediately following boundary, matching the V30's corresponding IF-delay behaviour.