Apple-6502-Scaffold/src/main.asm

36 lines
998 B
NASM
Raw Permalink Normal View History

2019-04-12 07:50:47 +00:00
; ****************************************
; main.asm
; Copyright (C) 20XX [your_name_here]
; ****************************************
2019-04-12 06:34:51 +00:00
processor 6502
incdir "include"
2019-04-13 16:12:05 +00:00
echo "main length:",[main_end-main]d,"bytes"
2019-04-12 07:50:47 +00:00
; ****************************************
; main
; ****************************************
seg
2019-04-12 06:34:51 +00:00
org $c00
main subroutine
2019-04-12 07:50:47 +00:00
jsr HOME ; Clear the screen
2019-04-12 06:34:51 +00:00
jsr print
byte "YOUR PROGRAM WORKED!",0
jsr print
byte '","CALL ",[main]d,'"," TO RUN AGAIN.",0
2019-04-12 07:50:47 +00:00
jmp DOSWRM ; Return to Applesoft
2019-04-12 06:34:51 +00:00
; ****************************************
; includes
; ****************************************
include "stdio"
include "print"
2019-04-13 16:12:05 +00:00
main_end