apple1/ROM development/HelloWorld.asm
Sergei Panarin 4f19769784 SmartyKit 1 ROM asm source & make file
SmartyKit 1 ROM assembler (asm) source and make file for cc65.

Easy-to-use development tool to write your own software for SmartyKLit 1 (you need just run make in your Terminal) and learn how ROM is organized.
2021-01-21 00:25:02 +03:00

14 lines
390 B
NASM

;printing 'Hello, World!'
;More about 'Hello, World!' program: https://en.wikipedia.org/wiki/%22Hello,_World!%22_program
LDX #00
PRINT_CHAR:
LDA HelloWorldText, X
BEQ END_PRINT ;end printing at the end of the string (\n=0)
JSR ECHO
INX
JMP PRINT_CHAR
END_PRINT:
JMP RESET ;return to Woz Monitor
HelloWorldText:
.byte $0d, "Hello, World!", $0d, "This is SmartyKit 1.", $0d, $0d, $00