exp01.asm

来自「程序为达盛实验箱所带」· 汇编 代码 · 共 34 行

ASM
34
字号
;File Name:exp01.asm
;the program is compiled at no autoinitialization mode
	.mmregs
	.global _main
_main: 
	stm		#2000h,sp
	ssbx	xf
	call 	delay
	rsbx	xf
	call 	delay
	b 		_main 
	nop
	nop            
	
;delay .5 second	
delay: 
	stm 	270fh,ar3
loop1:              
	stm 	0f9h,ar4
loop2:
	banz 	loop2,*ar4-
	banz 	loop1,*ar3-
	ret
	nop
	nop
;stm	2 cycles
;banz	when TRUE  4 cycles
;            FALSE 2 cycles
;0f9h=>249d
;270fh=>9999d
	.end
	

⌨️ 快捷键说明

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