Debian Codegraph @

tests/mbr-1

raw
1 #! /bin/sh
2 # Test of auto-booting from the hard disk using small disk interface.
3 # Drive: 0x80 - hd0
4 # Default: partition 3
5 # Timeout: 9
6 # Interrupt: Shift / Key
7 # Enable: 1
8 do_install -d 0x80 -p 3 -t 9 -isk -e1 test-mbr
9 # Boots the default
10 cat <<EOF >test-x
11 Output: "\rMBR "
12 Time: 9
13 Output: "\rMBR "
14 Read sector d128 h15 c1023 s17 to 0000:7c00
15 Output: "\r\n"
16 Time: 10
17 Exit: 0080 000f 03ff 0011
18 Partition: inactive type: 0xeb
19 Start: C=1023 H=15 S=17 End: C=1023 H=15 S=17
20 Sector 0x0004cc40 Length 0x00010de0
21 eax:00000e0a ebx:00000000 ecx:0000ffd1 edx:00000f80 PC:0000:00007c02
22 esi:000007de edi:00000005 ebp:00000000 efl:00030246 SP:0000:00000000
23 ds:0000 es:0000 fs:0000 gs:0000 FLAGS: c P a Z s t I d o
24 EOF
25 harness test-mbr -r 10 >test-y
26 diff -u test-x test-y
27
28 : Done