Add documentation.
This commit is contained in:
parent
c0e3f912a7
commit
1b6283102c
20
src/main.asm
20
src/main.asm
@ -54,15 +54,10 @@ coldstart SUBROUTINE
|
|||||||
|
|
||||||
jsr clear_color_ram
|
jsr clear_color_ram
|
||||||
|
|
||||||
pm:
|
; print informative message for user
|
||||||
lda #<message
|
lda #<message
|
||||||
ldy #>message
|
ldy #>message
|
||||||
jsr $cb1e
|
jsr $cb1e ; print null terminated string
|
||||||
|
|
||||||
; jmp .
|
|
||||||
|
|
||||||
; lda #0
|
|
||||||
; jsr $c871
|
|
||||||
|
|
||||||
jmp $c483 ; BASIC
|
jmp $c483 ; BASIC
|
||||||
|
|
||||||
@ -144,7 +139,7 @@ copyloop:
|
|||||||
inc count + 1
|
inc count + 1
|
||||||
.noinc3:
|
.noinc3:
|
||||||
|
|
||||||
; LENGTH
|
; lenght of program to copy
|
||||||
lda count
|
lda count
|
||||||
cmp #$00
|
cmp #$00
|
||||||
bne copyloop
|
bne copyloop
|
||||||
@ -156,15 +151,6 @@ copyloop:
|
|||||||
.finito:
|
.finito:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
; lda srcPointer
|
|
||||||
; cmp #<demoend
|
|
||||||
; bne copyloop
|
|
||||||
; lda srcPointer + 1
|
|
||||||
; cmp #>demoend
|
|
||||||
;.remainder:
|
|
||||||
; bne copyloop
|
|
||||||
; rts
|
|
||||||
|
|
||||||
message:
|
message:
|
||||||
BYTE #$0d,#$0d,"TYPE 'RUN'",#$0d,"THEN WAIT 20 SEC",#$0d,#$0d,#0
|
BYTE #$0d,#$0d,"TYPE 'RUN'",#$0d,"THEN WAIT 20 SEC",#$0d,#$0d,#0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user