mirror of
https://github.com/VARCem/asm6502.git
synced 2026-09-24 23:57:14 +00:00
work on documentation
This commit is contained in:
18
README.md
18
README.md
@@ -13,17 +13,17 @@ The following example implements a hello world program for the Commodore C64. Co
|
||||
.word LOAD_ADDR ; .PRG header: load address
|
||||
.org LOAD_ADDR
|
||||
|
||||
CHROUT = $FFD2 ; kernel function address
|
||||
SYS = $9E ; basic SYS token number
|
||||
CR = 13 ; carrige return character
|
||||
LF = %1010 ; line feed character
|
||||
CHROUT = $FFD2 ; kernal function address
|
||||
SYS = $9E ; basic SYS token number
|
||||
CR = 13 ; carrige return character
|
||||
LF = %1010 ; line feed character
|
||||
|
||||
basic_upstart: ; BASIC code: 10 SYS 2062
|
||||
.word @end, %1010
|
||||
.byte SYS, " 2062", 0
|
||||
@end .word 0
|
||||
basic_upstart: ; 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
|
||||
|
||||
start:
|
||||
start: ; this is at address 2062 ($080E)
|
||||
ldx #0
|
||||
@l lda hello_msg,x
|
||||
jsr CHROUT
|
||||
|
||||
Reference in New Issue
Block a user