memstack.asm
来自「X86 GX1 BOOTLOAD代码 ,支持WINCE操作系统!」· 汇编 代码 · 共 65 行
ASM
65 行
;**************************************************************************
;*
;* MEMSTACK.ASM
;*
;* Copyright (c) 1999 National Semiconductor Corporation.
;* All Rights Reserved.
;*
;* Function:
;* Set up a stack and do a quick test on it.
;*
;* $Revision:: 1 $
;*
;**************************************************************************
;.MODEL TINY
.486P
INCLUDE DEF.INC
INCLUDE MACROS.INC
INCLUDE PORT80.INC
_TEXT SEGMENT PUBLIC use16 'CODE'
;**************************************************************************
;*
;* memSetUpStack -
;*
;* Set up a stack for the ease of further testing.
;*
;* Entry:
;* Exit:
;* Destroys:
;*
;**************************************************************************
memSetUpStack PROC NEAR PUBLIC
PORT80 POST_STACK_SETUP ; post_90h
cli
mov ax, 1000h
mov ss, ax
mov sp, 8000h
mov ax, 069h
push ax
mov ax, 00h
pop ax
cmp ax, 069h
jne Stack_Fail
PORT80 POST_STACK_SETUP_PASS ; post_9eh
jmp bx
Stack_Fail:
PORT80 POST_STACK_SETUP_FAIL ; post_9fh ; Fail
hlt
memSetUpStack ENDP
_TEXT ENDS
END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?