mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
C64 -> C128 conversion
git-svn-id: svn://svn.cc65.org/cc65/trunk@1698 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
57e7ce7eb2
commit
45cae51628
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user