Next: Memory set (0x02), Up: Commands [Contents][Index]

#### 13.4.1 Memory get (0x01)

Reads a chunk of memory from a start address to an end address (inclusive).

Command body:

byte 0: side effects?

  Should the read cause side effects?

byte 1-2: start address
byte 3-4: end address
byte 5: memspace

  Describes which part of the computer you want to read:

  - 0x00: main memory
  - 0x01: drive 8
  - 0x02: drive 9
  - 0x03: drive 10
  - 0x04: drive 11
byte 6-7: bank ID

  Describes which bank you want. This is dependent on your machine. See Banks available (0x82). If the memspace selected doesn’t support banks, this value is ignored.

Response type:

0x01: MON_RESPONSE_MEM_GET

Response body:

byte 0-1: The length of the memory segment.
byte 2+: The memory at the address.