Debugged the driver

git-svn-id: svn://svn.cc65.org/cc65/trunk@2790 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-12-20 19:09:30 +00:00
parent 290de026d1
commit e2e6a62e5c

View File

@@ -2,7 +2,7 @@
; Extended memory driver for the CBM610 additional RAM banks. Driver works ; Extended memory driver for the CBM610 additional RAM banks. Driver works
; without problems when linked statically. ; without problems when linked statically.
; ;
; Ullrich von Bassewitz, 2002-12-09 !!! UNTESTED !!! ; Ullrich von Bassewitz, 2002-12-09, 2003-12-20
; ;
.include "zeropage.inc" .include "zeropage.inc"
@@ -112,12 +112,11 @@ MAP: sta curpage ; Remember the new page
sta IndReg sta IndReg
ldy #$00 ldy #$00
@L1: lda (ptr1),y @L1: .repeat 2
sta window,y
iny
lda (ptr1),y lda (ptr1),y
sta window,y sta window,y
iny iny
.endrepeat
bne @L1 bne @L1
stx IndReg stx IndReg
@@ -154,12 +153,11 @@ COMMIT: lda curpage ; Get the current page
sta IndReg sta IndReg
ldy #$00 ldy #$00
@L1: lda window,y @L1: .repeat 2
sta (ptr1),y
iny
lda window,y lda window,y
sta (ptr1),y sta (ptr1),y
iny iny
.endrepeat
bne @L1 bne @L1
stx IndReg stx IndReg
@@ -280,10 +278,10 @@ setup: sta ptr3
sta ptr2+1 ; Get count into ptr2 sta ptr2+1 ; Get count into ptr2
ldy #EM_COPY::BUF+1 ldy #EM_COPY::BUF+1
lda (ptr1),y lda (ptr3),y
tax tax
dey dey
lda (ptr1),y ; Get the buffer pointer into a/x lda (ptr3),y ; Get the buffer pointer into a/x
ldy #RAMBANK ldy #RAMBANK
sty IndReg sty IndReg