loop_test.asm

来自「可移植的MicroChip的PIC全系列单片机软件仿真器」· 汇编 代码 · 共 58 行

ASM
58
字号
	list	p=16c84	;; The purpose of this program is to test gpsim's ability to simulate looping instructions.	;; It's also used to get a rough bench mark on performance. (set a break point after the loop,	;; run the program, check the number of cycles...	  cblock  0x20	temp1	temp2	temp3	adr_cnt	data_cnt	w_temp	status_temp  endcstatus	equ	3rp0	equ	5intcon	equ	0x0bgie	equ	7eeie	equ	6eecon1	equ	0x08rd	equ	0wr	equ	1wren	equ	2eeif	equ	4eecon2	equ	0x09eedata	equ	0x08eeadr	equ	0x09		org 0	goto	start		org	4start	clrf	temp1	clrf	temp2	movlw   5	movwf	temp3begin	decfsz	temp1,f	 goto   begin	decfsz  temp2,f	 goto   begin	decfsz  temp3,f	 goto   begin	goto    start	end

⌨️ 快捷键说明

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