rawcdrom.asm
来自「XOSL 多操作系统管理工具 源代码 多系统引导工具」· 汇编 代码 · 共 47 行
ASM
47 行
.model large
.386p
.code
public @CCdRom@CallBootExtension$quliusus
public @CCdRom@GetExtDriveParams$qim15CExtDriveParams
;void CallBootExtension(unsigned long Address, int Func, unsigned short BX, unsigned short CX);
@CCdRom@CallBootExtension$quliusus proc c
arg @@this: dword
arg @@Address: dword, @@Func: word
arg @@BX: word, @@CX: word
mov ah,byte ptr @@Func
mov bx,@@BX
mov cx,@@CX
call @@Address
ret
endp
;int CCdRom::GetExtDriveParams(int Drive, CExtDriveParams &Params)
@CCdRom@GetExtDriveParams$qim15CExtDriveParams proc c
arg @@this: dword
arg @@Drive: word
arg @@ParamBuffer: dword
push ds
push si
mov ah,48h
mov dl,byte ptr @@Drive
lds si,@@ParamBuffer
int 13h
mov ax,-1
jc GetExtExit
inc ax
GetExtExit: pop si
pop ds
ret
endp
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?