Method: MicroCisc::Vm::Processor#stack_string

Defined in:
lib/micro_cisc/vm/processor.rb

#stack_stringObject



379
380
381
382
383
384
385
386
387
# File 'lib/micro_cisc/vm/processor.rb', line 379

def stack_string
  address = @registers[1] & 0xFFFF
  str = "#{'%04X' % address} => "
  while(address > 0xFF00 && address < 0x10000 && address - @registers[1] < 10)
    str += "0x#{'%04X' % read_mem(@id, address)} "
    address += 1
  end
  str
end