Tiny code shortening tweaks.
This commit is contained in:
parent
5e0b965829
commit
497b6ddc04
|
@ -254,7 +254,6 @@ ENTRY(get_diskinfo)
|
|||
* documentation, although we only need head and sector counts.
|
||||
*/
|
||||
subb %ah, %ah # %ax = 0
|
||||
movb %al, %al
|
||||
movb %ah, %bh # %bh = 0
|
||||
movb $2, %bl # %bl bits 0-3 = drive type, 2 = 1.2M
|
||||
movb $79, %ch # max track
|
||||
|
@ -301,9 +300,9 @@ ENTRY(memsize)
|
|||
|
||||
call EXT(prot_to_real) # enter real mode
|
||||
|
||||
cmpb $0x1, %bl
|
||||
testb %bl, %bl
|
||||
data32
|
||||
je xext
|
||||
jnz xext
|
||||
|
||||
sti
|
||||
int $0x12
|
||||
|
|
Loading…
Reference in New Issue