riscemu.IO.IOModule module

class riscemu.IO.IOModule.IOModule(name: str, flags: MemoryFlags, size: int, owner: str = 'system', base: int = 0)

Bases: MemorySection, ABC

__init__(name: str, flags: MemoryFlags, size: int, owner: str = 'system', base: int = 0)
contains(addr, size: int = 0)
dump(*args, **kwargs)

Dump the section. If no end is given, the rows around start are printed and start is highlighted.

Parameters:
  • start – The address to start at

  • end – The end of the printed space

  • fmt – either hex, int, char or asm

  • bytes_per_row – the number of bytes displayed per row

  • rows – the number of rows displayed

  • group – Group this many bytes into one when displaying

  • highlight – Highlight the group containing this address

Returns:

name: str
flags: MemoryFlags
size: int
base: int
owner: str
context: InstructionContext