;
-; Extended memory driver for the CBM510 additional RAM banks
+; Extended memory driver for the CBM510 additional RAM banks. Driver works
+; without problems when linked statically.
;
; Ullrich von Bassewitz, 2002-12-09 !!! UNTESTED !!!
;
; Jump table.
.word INSTALL
- .word DEINSTALL
+ .word UNINSTALL
.word PAGECOUNT
.word MAP
.word USE
; ------------------------------------------------------------------------
; Data.
-.data
-curpage: .byte $FF ; Current page number (invalid)
-
.bss
+curpage: .res 1 ; Current page number
+
window: .res 256 ; Memory "window"
pagecount: .res 1 ; Number of available pages
INSTALL:
lda #$FF
+ sta curpage ; Invalidate the current page
ldx UsrMemTop+2
cpx #RAMBANK ; Top of memory in bank 2?
rts
; ------------------------------------------------------------------------
-; DEINSTALL routine. Is called before the driver is removed from memory.
+; UNINSTALL routine. Is called before the driver is removed from memory.
; Can do cleanup or whatever. Must not return anything.
;
-DEINSTALL:
+UNINSTALL:
rts
;
-; Extended memory driver for the CBM610 additional RAM banks
+; Extended memory driver for the CBM610 additional RAM banks. Driver works
+; without problems when linked statically.
;
; Ullrich von Bassewitz, 2002-12-09 !!! UNTESTED !!!
;
; Jump table.
.word INSTALL
- .word DEINSTALL
+ .word UNINSTALL
.word PAGECOUNT
.word MAP
.word USE
; ------------------------------------------------------------------------
; Data.
-.data
-curpage: .byte $FF ; Current page number (invalid)
-
.bss
+curpage: .res 1 ; Current page number
+
window: .res 256 ; Memory "window"
pagecount: .res 1 ; Number of available pages
INSTALL:
lda #$FF
+ sta curpage ; Invalidate the current page
ldx UsrMemTop+2
cpx #RAMBANK ; Top of memory in bank 2?
rts
; ------------------------------------------------------------------------
-; DEINSTALL routine. Is called before the driver is removed from memory.
+; UNINSTALL routine. Is called before the driver is removed from memory.
; Can do cleanup or whatever. Must not return anything.
;
-DEINSTALL:
+UNINSTALL:
rts
;
; Extended memory driver for the VDC RAM available on all C128 machines
; version for GEOS enters safe I/O config on C64 (transparent on C128)
-;
+;
; Maciej 'YTM/Elysium' Witkowiak <ytm@elysium.pl>
; 06,20,25.12.2002
; Jump table.
.word INSTALL
- .word DEINSTALL
+ .word UNINSTALL
.word PAGECOUNT
.word MAP
.word USE
jmp vdcsetsrcaddr
; ------------------------------------------------------------------------
-; DEINSTALL routine. Is called before the driver is removed from memory.
+; UNINSTALL routine. Is called before the driver is removed from memory.
; Can do cleanup or whatever. Must not return anything.
;
-DEINSTALL:
+UNINSTALL:
;on C128 restore font and clear the screen?
rts
jsr setup
beq @L2 ; Skip if no full pages
-; Copy full pages
+; Copy full pages
@L1: jsr transferin
inc ptr1+1
jsr setup
beq @L2 ; Skip if no full pages
-; Copy full pages
+; Copy full pages
@L1: jsr transferout
inc ptr1+1