- Fixed pointer to the partition table in the buffer.

- Use shift by %cl instead of five shifts by 1.
This commit is contained in:
KATO Takenori 2000-08-03 09:00:19 +00:00
parent 1445fdb0f5
commit 1ee980919d

View File

@ -61,35 +61,30 @@ setup_partition:
movw %di, %bx # %bx = offset to partition table
xorw %dx, %dx # %dx = partition number
setup_partition_loop:
push %cx
movw %dx, %si
shlw %si
shlw %si
shlw %si
shlw %si
shlw %si
movb $5, %cl
shlw %cl, %si
addw %bx, %si
movb iplbuf(%si), %al
orb %al, %al
jz unused_partition
addw $iplbuf, %si
movw npartition, %ax
movw %ax, %di
shlw %di
shlw %di
shlw %di
shlw %di
shlw %di
movb $5, %cl
shlw %cl, %di
addw $parttable, %di
push %cx
movw $32, %cx
rep
movsb
pop %cx
movw %ax, %di
addw $partnum, %di
movb %dl, (%di)
incw npartition
unused_partition:
incw %dx
pop %cx
loop setup_partition_loop
ret