func.asm
来自「raywill写的操作系统内核」· 汇编 代码 · 共 26 行
ASM
26 行
;INT 15h
;AX = E801h
;Return:
; CF clear if successful
; AX = extended memory between 1M and 16M, in K (max 3C00h = 15MB)
; BX = extended memory above 16M, in 64K blocks
; CX = configured memory 1M to 16M, in K
; DX = configured memory above 16M, in 64K blocks CF set on error
;This function has been around since about 1994, so all systems from after then up to now should have this function.
;Note: For optimum compatibility with all systems you should use the functions in the order: E820h, E881h, E801h and resort to 88h/C7h if everything else fails.
global _setvect
_setvect:
push ebp
mov ebp,esp
push esi
push ebx
pop ebx
pop esi
pop ebp
ret
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?