cstartkd.a96
来自「80C196 C语言编写的一个小示例程序」· A96 代码 · 共 41 行
A96
41 行
;
; 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 + =
减小字号Ctrl + -
显示快捷键?