diff --git a/libsrc/c128/emd/c128-ram.s b/libsrc/c128/emd/c128-ram.s index bef0a15ee..3fc52c9cc 100644 --- a/libsrc/c128/emd/c128-ram.s +++ b/libsrc/c128/emd/c128-ram.s @@ -51,7 +51,7 @@ PAGES = (TOPMEM - BASE) / 256 ; Data. .bss -curpage: .res 1 ; Current page number +curpage: .res 2 ; Current page number window: .res 256 ; Memory "window" @@ -70,7 +70,7 @@ INSTALL: stx curpage+1 ; Invalidate the current page inx txa ; A = X = EM_ERR_OK - rts +; rts ; Run into UNINSTALL instead ; ------------------------------------------------------------------------ ; UNINSTALL routine. Is called before the driver is removed from memory. @@ -107,6 +107,7 @@ MAP: sta curpage lda #