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

📄 cstartkd.a96

📁 80C196 C语言编写的一个小示例程序
💻 A96
字号:
;
; This is an example STARTUP file.
; @(#)cstart.a96	1.5
;
; 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'.
;
STARTUP MODULE  CMAIN

        RSEG
SP	EQU	018H:WORD
Tmp0	EQU	01CH:WORD

        CSEG    AT 0C000H

	EXTRN	main:NULL

cstart:
	PUBLIC	cstart
	LD	SP,#STACK

;
; Some applications might want to do a CALL to main,
; and also have exit() calls.
; In that case enable the following:
	LCALL	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 + -