From 13a7812cf57a55e0086962dd4598b0747d9eec5a Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Thu, 22 Aug 2013 13:08:48 +0200 Subject: [PATCH 1/2] add some more SIO information --- asminc/atari.inc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/asminc/atari.inc b/asminc/atari.inc index 1fff3ebae..d976d6475 100644 --- a/asminc/atari.inc +++ b/asminc/atari.inc @@ -101,11 +101,28 @@ SIO_FORMAT = $21 ;format disk (default density) SIO_FORMATS = $22 ;1050: format medium density SIO_CONFIG = $44 ;configure drive SIO_CONFIGSF = $4B ;slow/fast configure drive?? +SIO_RDPERCOM = $4E ;read PERCOM block (XF551) +SIO_WRPERCOM = $4F ;write PERCOM block (XF551) SIO_WRITE = $50 ;write sector SIO_READ = $52 ;read sector SIO_STAT = $53 ;get status information SIO_VERIFY = $56 ;verify sector SIO_WRITEV = $57 ;write sector with verify +SIO_WRITETRK = $60 ;write track (Speedy) +SIO_READTRK = $62 ;read track (Speedy) + +; SIO Status Code (DSTATS) +; Input: data direction +; Bit #7 - W (write operation) +; #6 - R (read operation) +; Output: status code +; $01 (001) -- OPERATION COMPLETE (NO ERRORS) +; $8A (138) -- DEVICE TIMEOUT (DOESN'T RESPOND) +; $8B (139) -- DEVICE NAK +; $8C (140) -- SERIAL BUS INPUT FRAMING ERROR +; $8E (142) -- SERIAL BUS DATA FRAME OVERRUN ERROR +; $8F (143) -- SERIAL BUS DATA FRAME CHECKSUM ERROR +; $90 (144) -- DEVICE DONE ERROR ; Character and Key Code Equates From 887ba4d501d3bf99c0ec983637bb3e3227a2a987 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Mon, 26 Aug 2013 12:16:26 +0200 Subject: [PATCH 2/2] remove warning about missing return value; fix typo --- testcode/lib/atari/ostype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testcode/lib/atari/ostype.c b/testcode/lib/atari/ostype.c index e97bd00e6..f5e9296ca 100644 --- a/testcode/lib/atari/ostype.c +++ b/testcode/lib/atari/ostype.c @@ -40,6 +40,7 @@ int main(void) printf("is'a a XL/XE, %s, Rev. %d\n",palntsc ? "PAL" : "NTSC",minor); break; } - printf("hit to continure...\n"); + printf("hit to continue...\n"); c = getchar(); + return 0; }