12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- IF !DEFINED origin
- .ERROR "Run pasmo with: --equ origin=<addr>"
- ENDIF
- ; Pasmo macros for reserving space in bss
- ; This segment starts after the binary of this program
- lodata macro
- HILO defl 0
- org LOptr
- endm
- ; This segment starts at VOICAQ; should not be greater than 132 bytes.
- hidata macro
- HILO defl 1
- org HIptr
- endm
- word macro arg
- if nul arg
- org $ + 2
- else
- org $ + 2*arg
- endif
- endm
- byte macro arg
- if nul arg
- org $ + 1
- else
- org $ + arg
- endif
- if HILO = 0
- LOptr defl $
- else
- HIptr defl $
- endif
- endm
- ; ********************************* definitions
- include 'sysdefs.equ.asm'
- include 'im2setup.equ.asm'
- ; ********************************* entry point
- org origin
- Start proc
- jp Main
- endp
- ; *************** start of data area
- ; nothing to see here
- ; *************** end of data area, start of code area
- include 'main.code.asm'
- include 'im2setup.code.asm'
- include 'frametime.code.asm'
- ; *************** end of code area, start of bss area
- LOptr defl $
- HIptr defl VOICAQ
- include 'frametime.bss.asm'
- include 'main.bss.asm'
- ; *************** end of everything
- end
|