|
请教不点:
asm.S 中有 段代码,不太理解,请赐教。它牵扯到是否需要恢复旧的EMU的数据。
- movw 0x413, %ax /* Memory size in Kb */
- shlw $6, %ax /* Memory size in paragragh */
- cmpw 0x4E, %ax /* 0000:004E=current int 13 segment */
- jne 1f /* not hooked */
- movw %ax, %ds /* DS=current int13 code segment */
- /* check our int13 signature "$INT13SFGRUB4DOS" */
- cmpl $0x544E4924, 0x103 /* $INT */
- jnz 2f
- cmpl $0x46533331, 0x107 /* 13SF */
- jnz 2f
- cmpl $0x42555247, 0x10B /* GRUB */
- jnz 2f
- cmpl $0x534F4434, 0x10F /* 4DOS */
- jnz 2f
复制代码 |
|