|
@@ -1,25 +1,8 @@
|
|
|
-*=$0800 "BASIC Start"
|
|
|
- // location to put a 1 line basic program so we can just
|
|
|
- // type run to execute the assembled program.
|
|
|
-
|
|
|
- // will just call assembled program at correct location
|
|
|
- // 10 SYS (4096)
|
|
|
+*= $0801 "Basic Upstart"
|
|
|
+BasicUpstart(start) // 10 sys$0810
|
|
|
|
|
|
- // These bytes are a one line basic program that will
|
|
|
- // do a sys call to assembly language portion of
|
|
|
- // of the program which will be at $1000 or 4096 decimal
|
|
|
- // basic line is:
|
|
|
- // 10 SYS (4096)
|
|
|
- .byte $00 // first byte of basic should be a zero
|
|
|
- .byte $0E, $08 // Forward address to next basic line
|
|
|
- .byte $0A, $00 // this will be line 10 ($0A)
|
|
|
- .byte $9E // basic token for SYS
|
|
|
- .byte $20, $28, $34, $30, $39, $36, $29 // ASCII for " (4096)"
|
|
|
- .byte $00, $00, $00 // end of basic program (addr $080E from above)
|
|
|
-
|
|
|
-*=$1000 "Main Start"
|
|
|
-
|
|
|
- ldx #$00
|
|
|
+*= $0810 "Program"
|
|
|
+start: ldx #$00
|
|
|
stx $d020 // Border color register
|
|
|
stx $d021 // Background color
|
|
|
|