From 8fa5c7d9ff42cafdaef6bbb7a71cfc1f8968f877 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Fri, 17 Aug 2018 17:38:44 +0300 Subject: [PATCH] Added simple ATA PIO read only driver --- Boot486/2run.sh | 17 ++++++++++++----- Boot486/dis.sh | 2 +- Boot486/dis32.sh | 4 ++++ Boot486/kdis.sh | 2 +- Boot486/run.sh | 2 +- Docu486/Build-Tool.odc | Bin 2499 -> 2526 bytes Host/Mod486/Disk.odc | Bin 0 -> 7626 bytes Host/Mod486/Shell.odc | Bin 5142 -> 5989 bytes 8 files changed, 19 insertions(+), 8 deletions(-) create mode 100755 Boot486/dis32.sh create mode 100644 Host/Mod486/Disk.odc diff --git a/Boot486/2run.sh b/Boot486/2run.sh index f36443c..8a26c50 100755 --- a/Boot486/2run.sh +++ b/Boot486/2run.sh @@ -1,11 +1,18 @@ #!/bin/sh #bochs -q 'boot:a' 'floppya: 1_44=../BlackBox.img, status=inserted' -#bochs -q 'boot:c' 'ata0-master: type=disk, path="boot.bin", mode=flat' #bochs -q 'boot:c' 'ata0-master: type=disk, path="boot.bin", mode=flat' 'display_library: x, options="gui_debug"' 2> bochs.log + +#bochs -q \ +# 'boot:a' \ +# 'floppya: 1_44=boot.bin, status=inserted' \ +# 'display_library: x, options="gui_debug"' \ +# 'com1: enabled=1, mode=file, dev=serial.txt' \ +# 2> bochs.log + bochs -q \ - 'boot:a' \ - 'floppya: 1_44=boot.bin, status=inserted' \ - 'display_library: x, options="gui_debug"' \ + 'boot:c' \ + 'ata0-master: type=disk, path="../BlackBox.img", mode=flat' \ 'com1: enabled=1, mode=file, dev=serial.txt' \ -2> bochs.log + 'display_library: x, options="gui_debug"' \ + 2> bochs.log diff --git a/Boot486/dis.sh b/Boot486/dis.sh index fa9dee1..1217ca8 100755 --- a/Boot486/dis.sh +++ b/Boot486/dis.sh @@ -1,4 +1,4 @@ #!/bin/sh set -e -objdump -b binary -m i8086 -D boot.bin | less +objdump -b binary -m i8086 -D ../BlackBox.img | less diff --git a/Boot486/dis32.sh b/Boot486/dis32.sh new file mode 100755 index 0000000..9de8200 --- /dev/null +++ b/Boot486/dis32.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +set -e +objdump -b binary -m i386 -D ../BlackBox.img | less diff --git a/Boot486/kdis.sh b/Boot486/kdis.sh index 1b491a6..f660c7d 100755 --- a/Boot486/kdis.sh +++ b/Boot486/kdis.sh @@ -1,4 +1,4 @@ #!/bin/sh set -e -objdump -b binary -m i386 -D ../../Kernel.bin | less +objdump -b binary -m i386 -D ../BlackBox.bin | less diff --git a/Boot486/run.sh b/Boot486/run.sh index 6a315f7..a9c515f 100755 --- a/Boot486/run.sh +++ b/Boot486/run.sh @@ -1,4 +1,4 @@ #!/bin/sh set -e -qemu-system-i386 -s -m 1G -fda ../BlackBox.img +qemu-system-i386 -s -m 1G -hda ../BlackBox.img diff --git a/Docu486/Build-Tool.odc b/Docu486/Build-Tool.odc index 6be0c2ff8ae46a575730143ca21acdabb141c4a2..3d3dab95e5bd961aac9fadd3f8fdfd42e6d9f5f5 100644 GIT binary patch delta 133 zcmX>sd{1~nJ!AC5hB(fZ91IMc3=9klCq8#&^q#ECXfGVf#=yW26!Hbq5U_l6J!2>n z8%U6$X0juTC!^)$US@FtumWbFAQR9OpwwnZmIg)+kNn~im(1eq$p=_iM5a;d_lsWS z2M#gCi!n$XJzv1zy>IjI!<2|E-*$$QRf>NK%ENFm1yLf*p>xQDXD>5X!}#sD3?ql} zFY)H*`6qqnB$6t^%tY%19K+78C?a~1vMZ9yhs;B10VXL$h|83EXP;Mm8m}A1modJD zw|ss>BBV}=tPw?lyEl%UFl)*86-7)sM}P(6<6rQ=_%*+F0GoS$Hm{IBR_|FvgfEG{ zMp)PJH^+F)yr|Z_b`?`3`8r z+)il3QXkWZoMrrnM$GTuko9sRizexrB@37;#w&!vnp233JNT0}yoJ#fPM3euh$ueW z>a=z@O|jvJQOgaV*5~JQ?X8_ow=a4Rdwp}OD1P7so-?e^=jL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