⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memstack.asm

📁 X86 GX1 BOOTLOAD代码 ,支持WINCE操作系统!
💻 ASM
字号:
;**************************************************************************
;*
;*  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -