X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fc128%2Femd%2Fc128-ram2.s;h=9fb8a2836ca672b312888d81012d336bc9a1b70e;hb=85885001b133e2dc320b6f6459259afa69784ca8;hp=6b384392c64562de5fdca8ea25d9093142a66692;hpb=44fd1082ae807a0b6b4046c65914e20a7e27101c;p=cc65 diff --git a/libsrc/c128/emd/c128-ram2.s b/libsrc/c128/emd/c128-ram2.s index 6b384392c..9fb8a2836 100644 --- a/libsrc/c128/emd/c128-ram2.s +++ b/libsrc/c128/emd/c128-ram2.s @@ -8,9 +8,9 @@ ; Marco van den Heuvel, 2010-01-21 ; - .include "zeropage.inc" + .include "zeropage.inc" - .include "em-kernel.inc" + .include "em-kernel.inc" .include "em-error.inc" .include "c128.inc" @@ -26,7 +26,7 @@ ; Driver signature .byte $65, $6d, $64 ; "emd" - .byte EMD_API_VERSION ; EM API version number + .byte EMD_API_VERSION ; EM API version number ; Jump table. @@ -36,13 +36,13 @@ .word MAP .word USE .word COMMIT - .word COPYFROM + .word COPYFROM .word COPYTO ; ------------------------------------------------------------------------ ; Constants -BASE = $400 +BASE = $400 ; ------------------------------------------------------------------------ ; Data. @@ -103,9 +103,9 @@ INSTALL: ldx #$FF stx curpage stx curpage+1 ; Invalidate the current page - inx - txa ; A = X = EM_ERR_OK -; rts ; Run into UNINSTALL instead + inx + txa ; A = X = EM_ERR_OK +; rts ; Run into UNINSTALL instead ; ------------------------------------------------------------------------ ; UNINSTALL routine. Is called before the driver is removed from memory. @@ -175,7 +175,7 @@ USE: sta curpage ; COMMIT: Commit changes in the memory window to extended storage. COMMIT: sei - lda curpage ; Get the current page + lda curpage ; Get the current page ldx curpage+1 bmi done ; Jump if no page mapped @@ -183,9 +183,9 @@ COMMIT: sei stx curbank clc - adc #>BASE - sta ptr1+1 - ldy #$00 + adc #>BASE + sta ptr1+1 + ldy #$00 sty ptr1 lda #