demostrt.a96
来自「intel 196nt 例程」· A96 代码 · 共 67 行
A96
67 行
;
; 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 + =
减小字号Ctrl + -
显示快捷键?