CPU
Inherits Reference < Object
Constants
CLOCK_SPEED = 4194304
Constructors
new(gb : Motherboard)
SourceInstance methods
a=(value : UInt8) : UInt8
Sourceaf
Sourceaf=(value : UInt16) : UInt16
Sourceaf=(value : UInt8) : UInt16
Sourceb=(value : UInt8) : UInt8
Sourcebc
Sourcebc=(value : UInt16) : UInt16
Sourcebc=(value : UInt8) : UInt16
Sourcec=(value : UInt8) : UInt8
Sourced=(value : UInt8) : UInt8
Sourcede
Sourcede=(value : UInt16) : UInt16
Sourcede=(value : UInt8) : UInt16
Sourcee=(value : UInt8) : UInt8
Sourcef=(value : UInt8) : UInt8
Sourcef_c
Sourcef_c=(on : Int | Bool)
Sourcef_h
Sourcef_h=(on : Int | Bool)
Sourcef_n
Sourcef_n=(on : Int | Bool)
Sourcef_nc
Sourcef_nh
Sourcef_nn
Sourcef_nz
Sourcef_z
Sourcef_z=(on : Int | Bool)
Sourceh=(value : UInt8) : UInt8
Sourcehl
Sourcehl=(value : UInt16) : UInt16
Sourcehl=(value : UInt8) : UInt16
Sourceime
Sourceime=(ime : Bool)
Sourcel=(value : UInt8) : UInt8
Sourcememory
Sourcememory_at_hl
Sourcememory_at_hl=(val : UInt8) : Nil
Sourcepc
Sourcepc=(pc : UInt16)
Sourceprint_state(op : String | Nil = nil) : Nil
Sourcescheduler
Sourceskip_boot
Sourcesp
Sourcesp=(sp : UInt16)
Sourcetick
Runs for the specified number of machine cycles. If no argument provided, runs only one instruction. Handles interrupts after the instruction is executed.
Macros
flag(name, mask)
Sourceregister(upper, lower, mask = nil)
Source