Here I have made a sector dump from a USB stick attached to a ch376. the code is adapted from the Alan Cox Fuzix driver. It is compiled with the 6809 CMOC and loaded into ram to run. The bus interface uses no other components besides the 16v8 address decoder on a prototype board.
Code: Select all
>L
>C 1000
ch375 test
cmd2: cmd=6 data=85
ch375: version (dec) 68
cmd2: cmd=21 data=7
cmd2: cmd=21 data=6
ch376: firmware version 4
ch37x poll complete
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
000 33,C0,8E,D0,BC,00,7C,FB,50,07,50,1F,FC,BE,1B,7C,BF,1B,06,50,57,B9,E5,01,F3,A4,CB,BD,BE,07,B1,04, 3.....|.P.P....|...PW...........
020 38,6E,00,7C,09,75,13,83,C5,10,E2,F4,CD,18,8B,F5,83,C6,10,49,74,19,38,2C,74,F6,A0,B5,07,B4,07,8B, 8n.|.u.............It.8,t.......
040 F0,AC,3C,00,74,FC,BB,07,00,B4,0E,CD,10,EB,F2,88,4E,10,E8,46,00,73,2A,FE,46,10,80,7E,04,0B,74,0B, ..<.t...........N..F.s*.F..~..t.
060 80,7E,04,0C,74,05,A0,B6,07,75,D2,80,46,02,06,83,46,08,06,83,56,0A,00,E8,21,00,73,05,A0,B6,07,EB, .~..t....u..F...F...V...!.s.....
080 BC,81,3E,FE,7D,55,AA,74,0B,80,7E,10,00,74,C8,A0,B7,07,EB,A9,8B,FC,1E,57,8B,F5,CB,BF,05,00,8A,56, ..>.}U.t..~..t.........W.......V
0A0 00,B4,08,CD,13,72,23,8A,C1,24,3F,98,8A,DE,8A,FC,43,F7,E3,8B,D1,86,D6,B1,06,D2,EE,42,F7,E2,39,56, .....r#..$?.....C..........B..9V
0C0 0A,77,23,72,05,39,46,08,73,1C,B8,01,02,BB,00,7C,8B,4E,02,8B,56,00,CD,13,73,51,4F,74,4E,32,E4,8A, .w#r.9F.s......|.N..V...sQOtN2..
0E0 56,00,CD,13,EB,E4,8A,56,00,60,BB,AA,55,B4,41,CD,13,72,36,81,FB,55,AA,75,30,F6,C1,01,74,2B,61,60, V......V.`..U.A..r6..U.u0...t+a`
100 6A,00,6A,00,FF,76,0A,FF,76,08,6A,00,68,00,7C,6A,01,6A,10,B4,42,8B,F4,CD,13,61,61,73,0E,4F,74,0B, j.j..v..v.j.h.|j.j..B....aas.Ot.
120 32,E4,8A,56,00,CD,13,EB,D6,61,F9,C3,49,6E,76,61,6C,69,64,20,70,61,72,74,69,74,69,6F,6E,20,74,61, 2..V.....a..Invalid partition ta
140 62,6C,65,00,45,72,72,6F,72,20,6C,6F,61,64,69,6E,67,20,6F,70,65,72,61,74,69,6E,67,20,73,79,73,74, ble.Error loading operating syst
160 65,6D,00,4D,69,73,73,69,6E,67,20,6F,70,65,72,61,74,69,6E,67,20,73,79,73,74,65,6D,00,00,00,00,00, em.Missing operating system.....
180 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, ................................
1A0 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,2C,44,63,18,2E,07,C3,00,00,00,04, .....................,Dc........
1C0 01,04,83,FE,C2,FF,00,08,00,00,00,E8,0E,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, ................................
1E0 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,55,AA, ..............................U.
PC-FDBA A-00 B-00 X-0180 Y-BF37 U-1DD8 S-BF51 CC-F8 DP-00
>
The program re-writes the default compiler character output to use the Assist09 console driver. I had a problem using printf with the %x modifier but side-stepped it using sprintf where needed. The dump is from the first sector on the drive holding the boot record.