2
0

auxram.inc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ;;; --------------------------------------------------------------------------
  2. ;;; Base memory locations in auxiliary memory
  3. ;;;
  4. ;;; Make sure to set these here to avoid accidental overlap
  5. ;;; --------------------------------------------------------------------------
  6. ;;; Define AUXRAM_END and AUXRAM_SIZE to the appropriate values.
  7. ;;; If no auxiliary RAM is available, AUXRAM_END can be set to 0xf500
  8. ;;; (the address of DOSBUF0) and SP adjusted to AUXRAM_USED_BASE during.
  9. ;;; initialization.
  10. #include "nvram.inc"
  11. ;;; UFD-DOS: 64 bytes at 0x57c0
  12. defc AUXRAM_UFDDOS_SIZE = 64
  13. defc AUXRAM_UFDDOS_END = AUXRAM_END
  14. defc AUXRAM_UFDDOS_BASE = AUXRAM_UFDDOS_END - AUXRAM_UFDDOS_SIZE
  15. ;;; printnet: 256 bytes at 0x56c0
  16. defc AUXRAM_PRINTNET_SIZE = 256
  17. defc AUXRAM_PRINTNET_END = AUXRAM_UFDDOS_BASE
  18. defc AUXRAM_PRINTNET_BASE = AUXRAM_PRINTNET_END - AUXRAM_PRINTNET_SIZE
  19. ;;; MEG80 ramdisk: 32 bytes at 0x56a0
  20. ifdef SUPPORT_MEG80
  21. defc AUXRAM_MEG80_SIZE = 32
  22. defc AUXRAM_MEG80_END = AUXRAM_PRINTNET_BASE
  23. defc AUXRAM_MEG80_BASE = AUXRAM_MEG80_END - AUXRAM_MEG80_SIZE
  24. ;;; TKN80 patch: 96 bytes at 0x5640
  25. defc AUXRAM_TKN80_SIZE = 96
  26. defc AUXRAM_TKN80_END = AUXRAM_MEG80_BASE
  27. defc AUXRAM_TKN80_BASE = AUXRAM_TKN80_END - AUXRAM_TKN80_SIZE
  28. ;;; The part of AUXRAM that is actually allocated
  29. defc AUXRAM_USED_BASE = AUXRAM_TKN80_BASE
  30. else
  31. defc AUXRAM_USED_BASE = AUXRAM_PRINTNET_BASE
  32. endif
  33. defc AUXRAM_USED_SIZE = AUXRAM_END - AUXRAM_USED_BASE
  34. ;;; Base, size, and free data in auxram, if available at all
  35. ifndef AUXRAM_SIZE
  36. defc AUXRAM_SIZE = AUXRAM_USED_SIZE
  37. endif
  38. defc AUXRAM_BASE = AUXRAM_END - AUXRAM_SIZE
  39. defc AUXRAM_FREE_SIZE = AUXRAM_SIZE - AUXRAM_USED_SIZE