C64 -> C128 conversion
git-svn-id: svn://svn.cc65.org/cc65/trunk@1698 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
.include "em-kernel.inc"
|
.include "em-kernel.inc"
|
||||||
.include "em-error.inc"
|
.include "em-error.inc"
|
||||||
|
.include "c128.inc"
|
||||||
|
|
||||||
|
|
||||||
.macpack generic
|
.macpack generic
|
||||||
@@ -210,15 +211,14 @@ transfer1:
|
|||||||
transfer:
|
transfer:
|
||||||
sty REU_COMMAND ; Issue command
|
sty REU_COMMAND ; Issue command
|
||||||
|
|
||||||
ldy $01 ; Save the value of the c64 control port...
|
ldy MMU_CR ; Save the current MMU settings
|
||||||
tya ;
|
lda #MMU_CFG_RAM0 ;
|
||||||
ora #$03 ; Turn on lower 3 bits to bank out ROMs, I/O.
|
|
||||||
sei ;
|
sei ;
|
||||||
sta $01
|
sta MMU_CR ; Enable RAM in bank #0
|
||||||
lda REU_TRIGGER ; Don't change $FF00
|
lda REU_TRIGGER ; Don't change $FF00
|
||||||
sta REU_TRIGGER ; Start the transfer...
|
sta REU_TRIGGER ; Start the transfer...
|
||||||
|
|
||||||
sty $01 ; Restore the old configuration
|
sty MMU_CR ; Restore the old configuration
|
||||||
cli
|
cli
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user