vdptest.asm 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. IF !DEFINED origin
  2. .ERROR "Run pasmo with: --equ origin=<addr>"
  3. ENDIF
  4. ; Pasmo macros for reserving space in bss
  5. ; This segment starts after the binary of this program
  6. lodata macro
  7. HILO defl 0
  8. org LOptr
  9. endm
  10. ; This segment starts at VOICAQ; should not be greater than 132 bytes.
  11. hidata macro
  12. HILO defl 1
  13. org HIptr
  14. endm
  15. word macro arg
  16. if nul arg
  17. org $ + 2
  18. else
  19. org $ + 2*arg
  20. endif
  21. endm
  22. byte macro arg
  23. if nul arg
  24. org $ + 1
  25. else
  26. org $ + arg
  27. endif
  28. if HILO = 0
  29. LOptr defl $
  30. else
  31. HIptr defl $
  32. endif
  33. endm
  34. ; ********************************* definitions
  35. include 'sysdefs.equ.asm'
  36. include 'im2setup.equ.asm'
  37. ; ********************************* entry point
  38. org origin
  39. Start proc
  40. jp Main
  41. endp
  42. ; *************** start of data area
  43. ; nothing to see here
  44. ; *************** end of data area, start of code area
  45. include 'main.code.asm'
  46. include 'im2setup.code.asm'
  47. include 'frametime.code.asm'
  48. ; *************** end of code area, start of bss area
  49. LOptr defl $
  50. HIptr defl VOICAQ
  51. include 'frametime.bss.asm'
  52. include 'main.bss.asm'
  53. ; *************** end of everything
  54. end