📄 calltest18.asm
字号:
;; calltest18.asm ;; ;; The purpose of this program is to test how well gpsim can simulate ;; a 16bit-core pic (like the 18cxxx family not the 17c family). ;; Nothing useful is performed - this program is only used to ;; debug gpsim. ;; calltest.asm tests the stack. See it18.asm ;; for a program that tests the instructions include "p18c242.inc"fast equ 1 cblock 0 temp,temp1,temp2 endc org 0 clrf temp rcall ret ;Relative call call ret ;Long call movlw 0x10 movwf temp rcall recursive bra ct1ret: returnrecursive: dcfsnz temp,f return rcall recursive return ct1: bra ct2ct2: bra $ end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -