- 论坛徽章:
- 0
|
先谢谢了.因为有你们,所以我们进步的更快!
这里是linux 2.4.20 里 bootsect.s里的代码
movw $disksizes, %si # table of sizes to try
probe_loop:
lodsb
cbtw # extend to word
movw %ax, sectors
cmpw $disksizes+4, %si
jae got_sectors # If all else fails, try 9
xchgw %cx, %ax # %cx = track and sector
xorw %dx, %dx # drive 0, head 0
movw $0x0200, %bx # address = 512, in INITSEG (%es = %cs)
movw $0x0201, %ax # service 2, 1 sector
int $0x13
jc probe_loop # try next value
问题:
1,movw $disksizes, %si 这里是不是将disksizes的地址传给si寄存器
2,cmpw $disksizes+4,%si 比的是什么?令我费解的是$disksizes+4表示什么?
3,这里ax里面存的是什么内容?
在线等待! |
|