Skip to content

Commit

Permalink
Move SSC constants to inc file
Browse files Browse the repository at this point in the history
No binary changes
  • Loading branch information
inexorabletash committed Oct 21, 2024
1 parent 213c4d4 commit 26ec836
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
12 changes: 3 additions & 9 deletions desk.acc/print.catalog.s
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@

SLOT1 := $C100

;; SSC entry point lookup table
PInit = $0D
PRead = $0E
PWrite = $0F
PStatus = $10

.scope
ptr := $06

Expand Down Expand Up @@ -119,7 +113,7 @@ no_windows:
continue:
JUMP_TABLE_MGTK_CALL MGTK::SetCursor, MGTK::SystemCursor::watch

ldy #PInit
ldy #SSC::PInit
jsr GoCard

;; Init IW2 settings
Expand Down Expand Up @@ -857,7 +851,7 @@ fail:

;;; ============================================================

;;; Inputs: Y = entry point, A = char to output (for `PWrite`)
;;; Inputs: Y = entry point, A = char to output (for `SSC::PWrite`)
.proc GoCard
;; Normal banking
sta ALTZPOFF
Expand Down Expand Up @@ -894,7 +888,7 @@ vector: jsr SLOT1 ; self-modified
stx xsave
sty ysave

ldy #PWrite
ldy #SSC::PWrite
jsr GoCard

lda asave
Expand Down
10 changes: 2 additions & 8 deletions desk.acc/screen.dump.s
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ sig_bytes:

SLOT1 := $C100

;; SSC entry point lookup table
PInit = $0D
PRead = $0E
PWrite = $0F
PStatus = $10

;; Check for hardware signature - SSC in Slot 1

ldy #kSigLen-1
Expand Down Expand Up @@ -176,7 +170,7 @@ done: sta PAGE2OFF ; Read main mem $2000-$3FFF

.proc PrintScreen
;; Init printer
ldy #PInit
ldy #SSC::PInit
jsr GoCard

jsr SendSpacing
Expand Down Expand Up @@ -246,7 +240,7 @@ vector: jmp SLOT1 ; self-modified
stx xsave
sty ysave

ldy #PWrite
ldy #SSC::PWrite
jsr GoCard

lda asave
Expand Down
14 changes: 14 additions & 0 deletions inc/apple2.inc
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,20 @@ FW80MODE := $04FB ; 80 Col firmware mode ($FF = inactive)
OURCH := $057B ; 80 Col horizontal position
OURCV := $05FB ; 80 Col vertical position

;;; ============================================================
;;; Super Serial Card
;;; ============================================================

;;; Pascal 1.1 Entry Points
;;; Offset from $Cs00 to actual entry point in $CsXX space
;;; On entry, X=$Cs, Y=$s0
.enum SSC
PInit = $0D
PRead = $0E
PWrite = $0F
PStatus = $10
.endenum

;;; ============================================================
;;; Disk II / IWM I/O locations
;;; ============================================================
Expand Down

0 comments on commit 26ec836

Please sign in to comment.