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

📄 demostrt.a96

📁 intel 196nt 例程
💻 A96
字号:
;
; This is an example STARTUP file.
; @(#)demostrt.a96	1.1
;
; To Assemble: asm196 cstart.a96 cmain
; The 'cmain' control will allow symbol 'main' to be used.
;
; If FPAL96 is used, enable the calling of 'fpinit'.
;
; If scanf or sscanf is used, enable the calling of 'init_ungetc'.
;
; It is also possible to call the C function _main and do all the
; initializations there. See _main.c for details.
DEMOSTRT MODULE  CMAIN

        RSEG
SP	EQU	018H:WORD


if _24_BITS_
	CSEG	FAR AT 02080H
else
        CSEG    AT 2080H
endif

	EXTRN	fpinit:NULL
	EXTRN	init_ungetc:NULL
	EXTRN	main:NULL
	EXTRN	_main:NULL

cstart:
	PUBLIC	cstart
	LD	SP,#STACK
if _24_BITS_ and _FAR_CODE_
;	ECALL   fpinit
;	ECALL	init_ungetc

	ECALL   _main
;       ECALL   main

else
;	LCALL	fpinit
;	LCALL	init_ungetc

	LCALL	_main
;	LCALL	main

endif

;
; Some applications might want to do a CALL to main,
; and also have exit() calls.
; In that case enable the following:
;	LCALL	main			; or _main
; or
;	ECALL	main			; or _main
;
_exit:
	PUBLIC	_exit
exit:
	PUBLIC	exit
_cstop:
	PUBLIC	_cstop			; public for debuggers to set a breakpoint
	BR	_cstop			; keep on looping

	END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -