]> git.sur5r.net Git - cc65/commitdiff
C64 -> C128 conversion
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 2 Dec 2002 14:12:34 +0000 (14:12 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 2 Dec 2002 14:12:34 +0000 (14:12 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1698 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/c128/c128-reu.s

index 0dd83db965e702318657a2260ba0c7819e9f9177..4e94172d922bbda799dd3d1df351fe9675308f28 100644 (file)
@@ -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