Lines Matching +full:0 +full:x7c00
36 .set LOAD,0x7c00 # Load address
37 .set EXEC,0x600 # Execution address
38 .set MAGIC,0xaa55 # Magic: bootable
39 .set SECSIZE,0x200 # Size of a single disk sector
43 .set GPT_SIG,0
44 .set GPT_SIG_0,0x20494645 # "EFI "
45 .set GPT_SIG_1,0x54524150 # "PART"
51 .set PART_TYPE,0
55 .set DPBUF_SEC,0x10 # Number of sectors
57 .set NHRDRV,0x475 # Number of hard drives
87 main: cmpb $0x80,%dl # Drive valid?
90 addb $0x80,%dh # drive number available
93 main.1: movb $0x80,%dl # Assume drive 0x80
113 main.3: movb $0,%dh # %dh := 0 (reading backup)
116 main.3a: subl $1, (%si) # 0x0(%si) = last sec (0-31)
117 sbbl $0, 4(%si)
131 movw $0x10,%cx
135 # We found a boot partition. Load it into RAM starting at 0x7c00.
154 adcl $0,4(%si)
157 cmp $0x9000,%ax # Don't load past 0x90000,
160 mov $0x9000-SECSIZE/16,%ax # and truncate
168 # XXX: Should we int 0x18 instead of err_noboot if we hit the end of the table?
174 cmpw $PART_ADDR+0x200,%bx # Still in sector?
177 adcl $0,GPT_ADDR+GPT_PART_LBA+4
183 read: pushl 0x4(%si) # Set the LBA
184 pushl 0x0(%si) # address
187 pushw $0x1 # Read 1 sector
188 pushw $0x10 # Packet length
190 movw $0x4200,%ax # BIOS: LBA Read from disk
191 int $0x13 # Call the BIOS
192 add $0x10,%sp # Restore stack
200 movw $0x001e,(%si) # len
201 movw $0x4800,%ax # BIOS: Read Drive Parameters
202 int $0x13 # Call the BIOS
226 putstr.0: movw $0x7,%bx # Page:attribute
227 movb $0xe,%ah # BIOS: Display
228 int $0x10 # character
231 jnz putstr.0 # No
241 boot_uuid: .long 0x83bd6b9d
242 .word 0x7f41
243 .word 0x11dc
244 .byte 0xbe
245 .byte 0x0b
246 .byte 0x00
247 .byte 0x15
248 .byte 0x60
249 .byte 0xb8
250 .byte 0x4f
251 .byte 0x0f
253 .org DISKSIG,0x90
254 sig: .long 0 # OS Disk Signature
255 .word 0 # "Unknown" in PMBR
257 partbl: .fill 0x10,0x4,0x0 # Partition table