mirror of
https://github.com/smartykit/apple1.git
synced 2024-09-30 00:55:42 +00:00
4f19769784
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.
14 lines
390 B
NASM
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 |