added more stubs

This commit is contained in:
FeralChild64 committed 2019-09-27 20:50:27 +02:00
1 parent 2abda0944b
commit c6350cc86b
14 files changed
+63 -17

No files matched your search

+3 -3
View File
@@ -12,8 +12,8 @@
//
// $02 -- UNUSED -- free for user software
.label ADRAY1 = $03 // $03-$04 -- NOT IMPLEMENTED --
.label ADRAY2 = $05 // $05-$06 -- NOT IMPLEMENTED --
.label ADRAY1 = $03 // $03-$04
.label ADRAY2 = $05 // $05-$06
.label CHARAC = $07 // [!] our implementation might be different XXX give more details
.label ENDCHR = $08 // [!] our implementation might be different XXX give more details
.label TRMPOS = $09 // -- NOT IMPLEMENTED --
@@ -170,7 +170,7 @@
.label DELAY = $28C // -- NOT IMPLEMENTED --
.label SHFLAG = $28D // bucky keys (SHIFT/CTRL/C=) flags
.label LSTSHF = $28E // last bucky key flags
.label KEYLOG = $28F // $28F-$290 -- NOT IMPLEMENTED -- keyboard decoding pointer
.label KEYLOG = $28F // $28F-$290 routine to setup keyboard decoding
.label MODE = $291 // flag, is case switch allowed
.label AUTODN = $292 // -- NOT IMPLEMENTED -- screen scroll disable
.label M51CRT = $293 // -- NOT IMPLEMENTED -- mock 6551
+5
View File
@@ -0,0 +1,5 @@
// XXX provide documentation and implementation
basic_adray1:
STUB_IMPLEMENTATION()
+5
View File
@@ -0,0 +1,5 @@
// XXX provide documentation and implementation
basic_adray2:
STUB_IMPLEMENTATION()
+17 -1
View File
@@ -6,11 +6,27 @@ basic_cold_start:
// Setup vectors at $300
ldy #$0B
!:
lda basic_vector_defaults, y
lda basic_vector_defaults_1, y
sta IERROR, y
dey
bpl !-
// Setup misc vectors
ldy #$04
!:
lda basic_vector_defaults_2, y
sta ADRAY1, y
dey
bpl !-
// Setup USRPOK
lda #$4C // JMP opcode
sta USRPOK
lda #<do_ILLEGAL_QUANTITY_error
sta USRADD+0
lda #>do_ILLEGAL_QUANTITY_error
sta USRADD+1
// Print startup banner
jsr printf // XXX don't use printf, keep it for debug purposes only
TARGET_HOOK_BANNER()
+12 -7
View File
@@ -6,11 +6,16 @@
// - [CM64] Compute's Mapping the Commodore 64 - page 318
//
basic_vector_defaults:
basic_vector_defaults_1:
.word ERROR // IERROR
.word MAIN // IMAIN
.word CHRNCH // ICHRNCH
.word QPLOP // IQPLOP
.word GONE // IGONE
.word EVAL // IEVAL
.word ERROR // IERROR
.word MAIN // IMAIN
.word CHRNCH // ICHRNCH
.word QPLOP // IQPLOP
.word GONE // IGONE
.word EVAL // IEVAL
basic_vector_defaults_2:
.word basic_adray1 // ADRAY1
.word basic_adray2 // ADRAY2
+7
View File
@@ -56,6 +56,13 @@ cint_pal:
!:
sta TVSFLG
// Setup KEYLOG vector - XXX is it proper place?
lda #<setup_keydecode
sta KEYLOG+0
lda #>setup_keydecode
sta KEYLOG+1
cint_brk: // entry for BRK and STOP+RESTORE - XXX, where should it start?
jsr setup_vicii
+5
View File
@@ -0,0 +1,5 @@
// XXX provide documentation and implementation
setup_keydecode:
STUB_IMPLEMENTATION()