From: cuz Date: Mon, 2 Dec 2002 14:12:34 +0000 (+0000) Subject: C64 -> C128 conversion X-Git-Tag: V2.12.0~1956 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=45cae516282c873222ae20a5267f2f9513e8fe0e;p=cc65 C64 -> C128 conversion git-svn-id: svn://svn.cc65.org/cc65/trunk@1698 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/c128/c128-reu.s b/libsrc/c128/c128-reu.s index 0dd83db96..4e94172d9 100644 --- a/libsrc/c128/c128-reu.s +++ b/libsrc/c128/c128-reu.s @@ -8,6 +8,7 @@ .include "em-kernel.inc" .include "em-error.inc" + .include "c128.inc" .macpack generic @@ -210,15 +211,14 @@ transfer1: transfer: sty REU_COMMAND ; Issue command - ldy $01 ; Save the value of the c64 control port... - tya ; - ora #$03 ; Turn on lower 3 bits to bank out ROMs, I/O. + ldy MMU_CR ; Save the current MMU settings + lda #MMU_CFG_RAM0 ; sei ; - sta $01 + sta MMU_CR ; Enable RAM in bank #0 lda REU_TRIGGER ; Don't change $FF00 sta REU_TRIGGER ; Start the transfer... - sty $01 ; Restore the old configuration + sty MMU_CR ; Restore the old configuration cli rts