You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 line
1.1KB

  1. ; mailbox.inc - fixed test mailbox shared by the compiler, generated
  2. ; programs, and the x128 harness. Protocol: docs/memory-map.md.
  3. ;
  4. ; The mailbox is in bank 0 inside bottom common RAM, so it is readable and
  5. ; writable from every Nova128 mapping and from the VICE monitor after exit.
  6. .ifndef MAILBOX_INC
  7. MAILBOX_INC = 1
  8. MB_BASE = $1BF0
  9. MB_MAGIC0 = MB_BASE + 0 ; 'N' ($4E) once the mailbox is initialized
  10. MB_MAGIC1 = MB_BASE + 1 ; '8' ($38)
  11. MB_PRODUCER = MB_BASE + 2 ; who wrote it (MB_PROD_*)
  12. MB_STATUS = MB_BASE + 3 ; MB_ST_*
  13. MB_CODE = MB_BASE + 4 ; 2 bytes LE: diagnostic/fault/check code
  14. MB_ADDR = MB_BASE + 6 ; 2 bytes LE: fault or check address
  15. MB_DATA = MB_BASE + 8 ; 8 bytes producer-defined payload
  16. MB_SIZE = 16
  17. MB_MAGIC0_VALUE = $4E
  18. MB_MAGIC1_VALUE = $38
  19. MB_PROD_PLATFORM = $01 ; platform probe/skeleton
  20. MB_PROD_COMPILER = $02 ; N128C
  21. MB_PROD_PROGRAM = $03 ; generated Nova128 program
  22. MB_ST_RUNNING = $01 ; written first; still set => hung or crashed
  23. MB_ST_PASS = $A5
  24. MB_ST_FAIL = $FA
  25. .endif

Powered by TurnKey Linux.