mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
remove tab characters.
This commit is contained in:
parent
ba79b2db9b
commit
070264acc4
@ -52,44 +52,44 @@ RAMC_PAGE_HI = $DE3F ; Page register high
|
|||||||
;
|
;
|
||||||
|
|
||||||
INSTALL:
|
INSTALL:
|
||||||
;; write $55 into first page
|
;; write $55 into first page
|
||||||
lda #0
|
lda #0
|
||||||
sta RAMC_PAGE_LO
|
sta RAMC_PAGE_LO
|
||||||
sta RAMC_PAGE_HI
|
sta RAMC_PAGE_HI
|
||||||
lda #$55
|
lda #$55
|
||||||
sta RAMC_WINDOW
|
sta RAMC_WINDOW
|
||||||
|
|
||||||
;; write $AA into second page
|
;; write $AA into second page
|
||||||
lda #1
|
lda #1
|
||||||
sta RAMC_PAGE_LO
|
sta RAMC_PAGE_LO
|
||||||
sta RAMC_PAGE_HI
|
sta RAMC_PAGE_HI
|
||||||
lda #$AA
|
lda #$AA
|
||||||
sta RAMC_WINDOW
|
sta RAMC_WINDOW
|
||||||
|
|
||||||
;; check $55 in first page
|
;; check $55 in first page
|
||||||
lda #0
|
lda #0
|
||||||
sta RAMC_PAGE_LO
|
sta RAMC_PAGE_LO
|
||||||
sta RAMC_PAGE_HI
|
sta RAMC_PAGE_HI
|
||||||
lda RAMC_WINDOW
|
lda RAMC_WINDOW
|
||||||
cmp #$55
|
cmp #$55
|
||||||
bne @notpresent
|
bne @notpresent
|
||||||
|
|
||||||
;; check $AA in first page
|
;; check $AA in first page
|
||||||
lda #1
|
lda #1
|
||||||
sta RAMC_PAGE_LO
|
sta RAMC_PAGE_LO
|
||||||
sta RAMC_PAGE_HI
|
sta RAMC_PAGE_HI
|
||||||
lda RAMC_WINDOW
|
lda RAMC_WINDOW
|
||||||
cmp #$AA
|
cmp #$AA
|
||||||
bne @notpresent
|
bne @notpresent
|
||||||
|
|
||||||
lda #<EM_ERR_OK
|
lda #<EM_ERR_OK
|
||||||
ldx #>EM_ERR_OK
|
ldx #>EM_ERR_OK
|
||||||
rts
|
rts
|
||||||
|
|
||||||
@notpresent:
|
@notpresent:
|
||||||
lda #<EM_ERR_NO_DEVICE
|
lda #<EM_ERR_NO_DEVICE
|
||||||
ldx #>EM_ERR_NO_DEVICE
|
ldx #>EM_ERR_NO_DEVICE
|
||||||
; use rts from UNINSTALL below
|
; use rts from UNINSTALL below
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; UNINSTALL routine. Is called before the driver is removed from memory.
|
; UNINSTALL routine. Is called before the driver is removed from memory.
|
||||||
@ -122,8 +122,8 @@ USE = MAP
|
|||||||
;
|
;
|
||||||
|
|
||||||
MAP: sta RAMC_PAGE_LO
|
MAP: sta RAMC_PAGE_LO
|
||||||
txa
|
txa
|
||||||
and #1
|
and #1
|
||||||
sta RAMC_PAGE_HI
|
sta RAMC_PAGE_HI
|
||||||
lda #<RAMC_WINDOW
|
lda #<RAMC_WINDOW
|
||||||
ldx #>RAMC_WINDOW
|
ldx #>RAMC_WINDOW
|
||||||
|
Loading…
Reference in New Issue
Block a user