mirror of
https://github.com/VARCem/Vasm.git
synced 2026-07-08 18:16:18 +00:00
19 lines
514 B
NASM
19 lines
514 B
NASM
; Preamble to create a C64 .PRG file.
|
|
|
|
SYS = $9E ; basic SYS token number
|
|
|
|
LOAD = $0801 ; load address
|
|
|
|
.cpu 6510 ; set processor for C64
|
|
|
|
.word LOAD ; .PRG header: load address
|
|
|
|
.org LOAD ; we start at this address
|
|
|
|
basic: ; BASIC code: 10 SYS 2062
|
|
.word @end, 10 ; ptr to next basic line and line number 10
|
|
.byte SYS, " 2062", 0 ; SYS token and address string of subroutine
|
|
@end .word 0 ; null ptr to indicate end of basic text
|
|
|
|
; End of preamble code.
|