Lines Matching +full:0 +full:x7c00
18 .set LOAD,0x7c00 # Load address
19 .set EXEC,0x600 # Execution address
20 .set PT_OFF,0x1be # Partition table
21 .set MAGIC,0xaa55 # Magic: bootable
22 .set FL_PACKET,0x80 # Flag: try EDD
24 .set NHRDRV,0x475 # Number of hard drives
44 movw $0x200-(main-start),%cx # Byte count
59 movb $0x4,%cl # Number of entries
62 jg err_pt # If 0x1..0x7f
66 main.2: addb $0x10,%bl # Till
70 int $0x18 # BIOS: Diskless boot
75 main.3: cmpb $0x80,%dl # Drive valid?
78 addb $0x80,%dh # drive number available
87 movb 0x1(%si),%dh # Load head
88 movw 0x2(%si),%cx # Load cylinder:sector
94 movw $0x55aa,%bx # Magic
95 movb $0x41,%ah # BIOS: EDD extensions
96 int $0x13 # present?
98 cmpw $0xaa55,%bx # Magic ok?
100 testb $0x1,%cl # Packet mode present?
103 pushl $0x0 # Set the LBA
104 pushl 0x8(%si) # address
107 pushw $0x1 # Read 1 sector
108 pushw $0x10 # Packet length
110 movw $0x4200,%ax # BIOS: LBA Read from disk
114 main.7: movw $0x201,%ax # BIOS: Read from disk
115 main.8: int $0x13 # Call the BIOS
119 # Now that we've loaded the bootstrap, check for the 0xaa55 signature. If it
122 cmpw $MAGIC,0x1fe(%bx) # Bootable?
139 putstr.0: movw $0x7,%bx # Page:attribute
140 movb $0xe,%ah # BIOS: Display
141 int $0x10 # character
144 jnz putstr.0 # No
151 .org PT_OFF-1,0x90
154 partbl: .fill 0x10,0x4,0x0 # Partition table