From 7dae33ce368b38c78d798b17f613b682560abd6f Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sat, 12 Dec 2020 10:08:16 -0500 Subject: [PATCH] rc2014: add SIO xcomp unit --- arch/z80/rc2014/blk.fs | 24 +++++++++++++++++++++--- arch/z80/rc2014/xcompsio.fs | 3 +++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 arch/z80/rc2014/xcompsio.fs diff --git a/arch/z80/rc2014/blk.fs b/arch/z80/rc2014/blk.fs index 61a6bc1..781c154 100644 --- a/arch/z80/rc2014/blk.fs +++ b/arch/z80/rc2014/blk.fs @@ -139,6 +139,7 @@ THEN, HL POP, JR, AGAIN, (im1) ; ( ----- 619 ) +( RC2014 classic with ACIA ) 0xff00 CONSTANT RS_ADDR 0xfffa CONSTANT PS_ADDR RS_ADDR 0x80 - CONSTANT SYSVARS 0x8000 CONSTANT HERESTART @@ -148,9 +149,26 @@ RS_ADDR 0x80 - CONSTANT SYSVARS 262 LOAD ( xcomp ) 282 LOAD ( boot.z80.decl ) 270 LOAD ( xcomp overrides ) 283 335 LOADR ( boot.z80 ) 353 LOAD ( xcomp core low ) 603 605 LOADR ( acia ) -419 LOAD 423 436 LOADR +419 LOAD ( SPI relay ) 423 436 LOADR ( SD Card ) +400 LOAD ( AT28 ) 390 LOAD ( xcomp core high ) (entry) _ -( Update LATEST ) -PC ORG @ 8 + ! +PC ORG @ 8 + ! ( Update LATEST ) ," ACIA$ BLK$ " EOT, +( ----- 620 ) +( RC2014 classic with SIO ) +0xff00 CONSTANT RS_ADDR 0xfffa CONSTANT PS_ADDR +RS_ADDR 0x80 - CONSTANT SYSVARS +0x8000 CONSTANT HERESTART +4 CONSTANT SPI_DATA 5 CONSTANT SPI_CTL 1 CONSTANT SDC_DEVID +607 LOAD ( SIO decl ) +5 LOAD ( z80 assembler ) +262 LOAD ( xcomp ) 282 LOAD ( boot.z80.decl ) +270 LOAD ( xcomp overrides ) 283 335 LOADR ( boot.z80 ) +353 LOAD ( xcomp core low ) 608 610 LOADR ( SIO ) +419 LOAD ( SPI relay ) 423 436 LOADR ( SD Card ) +400 LOAD ( AT28 ) +390 LOAD ( xcomp core high ) +(entry) _ +PC ORG @ 8 + ! ( Update LATEST ) +," SIO$ BLK$ " EOT, diff --git a/arch/z80/rc2014/xcompsio.fs b/arch/z80/rc2014/xcompsio.fs new file mode 100644 index 0000000..41099c5 --- /dev/null +++ b/arch/z80/rc2014/xcompsio.fs @@ -0,0 +1,3 @@ +620 LOAD +ORG @ |M 2 PC! 2 PC! +H@ |M 2 PC! 2 PC!