mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +00:00
Make PIA upper case for orthogonality.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4586 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
6a712d8b9e
commit
49f6f3972b
@ -39,7 +39,7 @@
|
|||||||
BASE = $4000
|
BASE = $4000
|
||||||
PAGES = 3 * 256
|
PAGES = 3 * 256
|
||||||
TARGETLOC = $200 ; Target location for copy/check code
|
TARGETLOC = $200 ; Target location for copy/check code
|
||||||
pia = $DFC0
|
PIA = $DFC0
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Data.
|
; Data.
|
||||||
@ -52,13 +52,13 @@ pia = $DFC0
|
|||||||
template:
|
template:
|
||||||
.org ::TARGETLOC ; Assemble for target location
|
.org ::TARGETLOC ; Assemble for target location
|
||||||
entry:
|
entry:
|
||||||
stx pia
|
stx PIA
|
||||||
stashop = $91 ; 'sta' opcode
|
stashop = $91 ; 'sta' opcode
|
||||||
operation := * ; Location and opcode is patched at runtime
|
operation := * ; Location and opcode is patched at runtime
|
||||||
address := *+1
|
address := *+1
|
||||||
lda ($00),y
|
lda ($00),y
|
||||||
ldx #$dc
|
ldx #$dc
|
||||||
stx pia
|
stx PIA
|
||||||
rts
|
rts
|
||||||
.reloc
|
.reloc
|
||||||
.endproc
|
.endproc
|
||||||
@ -71,7 +71,7 @@ entry:
|
|||||||
ldy #$00 ; Assume hardware not present
|
ldy #$00 ; Assume hardware not present
|
||||||
|
|
||||||
lda #$fc
|
lda #$fc
|
||||||
sta pia
|
sta PIA
|
||||||
lda $01
|
lda $01
|
||||||
tax
|
tax
|
||||||
and #$f8
|
and #$f8
|
||||||
@ -87,7 +87,7 @@ entry:
|
|||||||
iny
|
iny
|
||||||
done: stx $01
|
done: stx $01
|
||||||
ldx #$dc
|
ldx #$dc
|
||||||
stx pia
|
stx PIA
|
||||||
rts
|
rts
|
||||||
.reloc
|
.reloc
|
||||||
.endproc
|
.endproc
|
||||||
@ -115,36 +115,36 @@ backup: .res .max (.sizeof (copy), .sizeof (check))
|
|||||||
;
|
;
|
||||||
|
|
||||||
INSTALL:
|
INSTALL:
|
||||||
lda pia+1 ; Select Peripheral Registers
|
lda PIA+1 ; Select Peripheral Registers
|
||||||
ora #4
|
ora #4
|
||||||
sta pia+1
|
sta PIA+1
|
||||||
tax
|
tax
|
||||||
lda pia+3
|
lda PIA+3
|
||||||
ora #4
|
ora #4
|
||||||
sta pia+3
|
sta PIA+3
|
||||||
tay
|
tay
|
||||||
|
|
||||||
lda #$DC ; Set the default memory bank data
|
lda #$DC ; Set the default memory bank data
|
||||||
sta pia
|
sta PIA
|
||||||
lda #$FE
|
lda #$FE
|
||||||
sta pia+2
|
sta PIA+2
|
||||||
|
|
||||||
txa ; Select Data Direction Registers
|
txa ; Select Data Direction Registers
|
||||||
and #$FB
|
and #$FB
|
||||||
sta pia+1
|
sta PIA+1
|
||||||
tya
|
tya
|
||||||
and #$FB
|
and #$FB
|
||||||
sta pia+3
|
sta PIA+3
|
||||||
|
|
||||||
lda #$FF ; Set the ports to output
|
lda #$FF ; Set the ports to output
|
||||||
sta pia
|
sta PIA
|
||||||
sta pia+2
|
sta PIA+2
|
||||||
|
|
||||||
txa
|
txa
|
||||||
and #$C7
|
and #$C7
|
||||||
ora #$30 ; Set CA1 and
|
ora #$30 ; Set CA1 and
|
||||||
sta pia+1 ; select Peripheral Registers
|
sta PIA+1 ; select Peripheral Registers
|
||||||
sty pia+3
|
sty PIA+3
|
||||||
|
|
||||||
jsr backup_and_setup_check_routine
|
jsr backup_and_setup_check_routine
|
||||||
jsr check::entry
|
jsr check::entry
|
||||||
|
Loading…
Reference in New Issue
Block a user