From 3c5bd1296aba55c904f1ada9e5c33a5d1c1c2ec9 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sun, 7 Nov 2021 21:16:34 -0800 Subject: [PATCH] wip --- ace2000_c300_cfff.s | 21 ++-- ace500_c300_cfff.s | 287 ++++++++++++++++++++++++++++---------------- 2 files changed, 194 insertions(+), 114 deletions(-) diff --git a/ace2000_c300_cfff.s b/ace2000_c300_cfff.s index c8be041..1186023 100644 --- a/ace2000_c300_cfff.s +++ b/ace2000_c300_cfff.s @@ -21,6 +21,10 @@ BASH := $29 BAS2L := $2A BAS2H := $2B INVFLG := $32 +CSWL := $36 +CSWH := $37 +KSWL := $38 +KSWH := $39 A1L := $3C A1H := $3D A2L := $3E @@ -121,7 +125,7 @@ CLREOL := $FC9C ;; Init LC300: bit SETV ; V = init - bra LC33A + bra MainEntry ;; Input .assert * = C3KeyIn, error, "Entry point mismatch" @@ -132,7 +136,7 @@ LC305: sec .assert * = C3COut1, error, "Entry point mismatch" LC307: clc clv - bra LC33A + bra MainEntry ;; Signature bytes .byte $01, $88 @@ -176,7 +180,8 @@ JumpAuxMove: ;;; ============================================================ ;;; Main Entry Points -LC33A: sta CLRROM +MainEntry: + sta CLRROM sta SAVEA stx SAVEX sty SAVEY @@ -184,12 +189,12 @@ LC33A: sta CLRROM bvc LC35B lda #LC305 - stx $39 - lda #$07 - sta $36 - stx $37 + stx KSWH + lda #LC305 + stx KSWH + lda #