hwdefs.fs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ( Hardware register definitions JCB 11:36 01/23/11)
  2. h# 0000 constant RAM_PIC \ Screen Picture, 64 x 64 = 4096 bytes
  3. h# 1000 constant RAM_CHR \ Screen Characters, 256 x 16 = 4096 bytes
  4. h# 2000 constant RAM_PAL \ Screen Character Palette, 256 x 8 = 2048 bytes
  5. h# 2800 constant IDENT
  6. h# 2801 constant REV
  7. h# 2802 constant FRAME
  8. h# 2803 constant VBLANK
  9. h# 2804 constant SCROLL_X
  10. h# 2805 constant SCROLL_Xhi
  11. h# 2806 constant SCROLL_Y
  12. h# 2807 constant SCROLL_Yhi
  13. h# 2808 constant JK_MODE
  14. h# 2809 constant J1_RESET
  15. h# 280a constant SPR_DISABLE
  16. h# 280b constant SPR_PAGE
  17. h# 280c constant IOMODE
  18. h# 280e constant BG_COLOR
  19. h# 2810 constant SAMPLE_Llo
  20. h# 2811 constant SAMPLE_Lhi
  21. h# 2812 constant SAMPLE_Rlo
  22. h# 2813 constant SAMPLE_Rhi
  23. h# 2a00 constant VOICES
  24. h# 2840 constant PALETTE16A \ 16-color palette RAM A, 32 bytes
  25. h# 2860 constant PALETTE16B \ 16-color palette RAM B, 32 bytes
  26. h# 2880 constant PALETTE4A \ 4-color palette RAM A, 8 bytes
  27. h# 2888 constant PALETTE4B \ 4-color palette RAM A, 8 bytes
  28. h# 2890 constant COMM \ Communication buffer
  29. h# 2900 constant COLLISION \ Collision detection RAM, 256 bytes
  30. h# 2b00 constant J1_CODE \ J1 coprocessor microcode RAM
  31. h# 3000 constant RAM_SPR \ Sprite Control, 512 x 4 = 2048 bytes
  32. h# 3800 constant RAM_SPRPAL \ Sprite Palettes, 4 x 256 = 2048 bytes
  33. h# 4000 constant RAM_SPRIMG \ Sprite Image, 64 x 256 = 16384 bytes
  34. [ COMM 0 + ] constant COMM+0
  35. [ COMM 1 + ] constant COMM+1
  36. [ COMM 2 + ] constant COMM+2
  37. [ COMM 3 + ] constant COMM+3
  38. [ COMM 4 + ] constant COMM+4
  39. [ COMM 5 + ] constant COMM+5
  40. [ COMM 6 + ] constant COMM+6
  41. [ COMM 7 + ] constant COMM+7
  42. [ COMM 8 + ] constant COMM+8
  43. [ COMM 9 + ] constant COMM+9
  44. [ COMM 10 + ] constant COMM+10
  45. [ COMM 11 + ] constant COMM+11
  46. [ COMM 12 + ] constant COMM+12
  47. [ COMM 13 + ] constant COMM+13
  48. [ COMM 14 + ] constant COMM+14
  49. [ COMM 15 + ] constant COMM+15
  50. ( Locations for coprocessor only JCB 11:45 02/06/11)
  51. h# 8000 constant YLINE
  52. h# 8002 constant ICAP_O
  53. h# 8004 constant ICAP_BUSY
  54. h# 8006 constant ICAP_PORT \ see reload.fs for details
  55. h# 800a constant FREQHZ
  56. h# 800c constant FREQTICK
  57. h# 800e constant P2_V
  58. h# 8010 constant P2_DIR
  59. h# 8012 constant RANDOM
  60. h# 8014 constant CLOCK
  61. h# 8016 constant FLASH_MISO
  62. h# 8018 constant FLASH_MOSI
  63. h# 801a constant FLASH_SCK
  64. h# 801c constant FLASH_SSEL