Debian Codegraph @

tests/mbr-2

raw
1 #! /bin/sh
2 # Check floppy booting. Small disk interface.
3 cat <<EOF >test-x
4 Version: 2
5 Compatible: 2
6 Y2K-Fix: Disabled
7 Drive: 0x80
8 Default: F
9 Timeout: 9/18 seconds
10 Enabled: A
11 Interrupt: Shift
12 EOF
13 do_install -l -r -d 0x80 -p f -t 9 -is -ea test-mbr > test-y
14 diff -u test-x test-y
15 cat <<EOF >test-x
16 Output: "\rMBR "
17 Time: 9
18 Output: "\rMBR "
19 Read sector d0 h0 c0 s1 to 0000:7c00
20 Output: "\r\n"
21 Exit: 0000 0000 0000 0001
22 Floppy boot.
23 eax:00000e0a ebx:00000000 ecx:00000001 edx:00000000 PC:0000:00007c02
24 esi:00000790 edi:00000005 ebp:00000000 efl:00030246 SP:0000:00000000
25 ds:0000 es:0000 fs:0000 gs:0000 FLAGS: c P a Z s t I d o
26 EOF
27 harness test-mbr -r 10 >test-y
28 diff -u test-x test-y
29
30 : Done