Refactor c64_0.oph to include a minimal BASIC loader

This commit is contained in:
Michael Martin 2014-05-14 22:49:55 -07:00
parent f48071add9
commit 7ad52695d2
2 changed files with 11 additions and 9 deletions

View File

@ -8,15 +8,7 @@
;; You will have a contiguous block of RAM from $0800 to $CFFF, and
;; Zero Page access from $02 to $8F in the segment "zp".
.word $0801
.org $0801
; BASIC program that just calls our machine language code
.scope
.word _next, 10 ; Next line and current line number
.byte $9e," 2062",0 ; SYS 2062
_next: .word 0 ; End of program
.scend
.include "c64header.oph"
.data zp ; Zero Page memory segment.
.org $0002

10
platform/c64header.oph Normal file
View File

@ -0,0 +1,10 @@
.word $0801
.org $0801
; BASIC program that just calls our machine language code
.scope
.word _next, 10 ; Next line and current line number
.byte $9e," 2062",0 ; SYS 2062
_next: .word 0 ; End of program
.scend
; Program follows...