Class: Badline::KernalTrap::File

Inherits:
Object
  • Object
show all
Includes:
IntegerHelper
Defined in:
lib/badline/kernal_trap/file.rb

Direct Known Subclasses

Load, Save

Constant Summary collapse

DEVICE =
8
MISSING_FILENAME =
0x08

Instance Method Summary collapse

Methods included from IntegerHelper

#bcd, #bcd_to_i, #format16, #format8, #high_byte, #low_byte, #signed_int8, #uint16

Constructor Details

#initialize(cpu:, bus:, storage:) ⇒ File

Returns a new instance of File.



12
13
14
15
16
# File 'lib/badline/kernal_trap/file.rb', line 12

def initialize(cpu:, bus:, storage:)
  @cpu = cpu
  @bus = bus
  @storage = storage
end