From b8800be76ff862c2f8027bcdf9e684ea363ac0e2 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 28 Jun 2020 16:34:41 -0400 Subject: [PATCH] rc2014: improve SD card driver docs --- blk/600 | 10 ++++++++++ blk/604 | 1 - recipes/rc2014/sdcard/README.md | 2 +- recipes/rc2014/sdcard/cfsin/hello.txt | 1 - 4 files changed, 11 insertions(+), 3 deletions(-) delete mode 100644 recipes/rc2014/sdcard/cfsin/hello.txt diff --git a/blk/600 b/blk/600 index 59cf355..2d7374c 100644 --- a/blk/600 +++ b/blk/600 @@ -1,3 +1,13 @@ SD Card driver Load range: 602-616 + +This driver is designed for a ad-hoc adapter card that acts as a +SPI relay between the z80 bus and the SD card. That adapter is +expected to pull CS low when something is written to SDC_CSLOW, +high on SDC_CSHIGH and to initiate a SPI exchange when a byte is +written to SDC_SPI, the result of that exchange being fetched +with a read to SDC_SPI. + +Through that layer, this driver implements the SDC protocol +allowing it to provide BLK@ and BLK!. diff --git a/blk/604 b/blk/604 index 95c82f8..0d34578 100644 --- a/blk/604 +++ b/blk/604 @@ -13,4 +13,3 @@ DUP 20 = UNTIL DROP 0xff ; -1 12 LOADR+ diff --git a/recipes/rc2014/sdcard/README.md b/recipes/rc2014/sdcard/README.md index ad66fe7..bfb8f56 100644 --- a/recipes/rc2014/sdcard/README.md +++ b/recipes/rc2014/sdcard/README.md @@ -86,7 +86,7 @@ Build it and write it to EEPROM. The RC2014 emulator includes SDC emulation. You can attach a SD card image to it by invoking it with a second argument: - ../../../emul/hw/rc2014/classic os.bin ../../../emul/blkfs + ../../../emul/hw/rc2014/classic os.bin ../../../cvm/blkfs You will then run with a SD card having the contents from `/blk`. diff --git a/recipes/rc2014/sdcard/cfsin/hello.txt b/recipes/rc2014/sdcard/cfsin/hello.txt deleted file mode 100644 index 980a0d5..0000000 --- a/recipes/rc2014/sdcard/cfsin/hello.txt +++ /dev/null @@ -1 +0,0 @@ -Hello World!