⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example.asm

📁 this example for pic from
💻 ASM
字号:
;
;	File: Example.asm
;	This is the main file in the MPASM assembler/MPLINK linker example
;       Use with Example2.asm 
;       17 May 2004
;

	list	 p=16f84a
	#include p16f84a.inc
	
	
;   Set configuration bits using definitions from the include file, p16f84.inc
	__config	_LP_OSC & _PWRTE_OFF & _WDT_OFF & _CP_OFF

	
;   Set User ID Memory
	__idlocs	0x1234



PROG	CODE		; Set the start of code from 16f84a.lkr script

main			; Min code entry called from Example2.asm
	global	main	; Define as global so can be used in Example2.asm
	nop		; Main does nothing -- Put your code here
	goto	main	; Our sample "main" is just an infinite loop

service 		; Interrupt routine, called from Example2.asm
	global service	; Define as global so can be used in Example2.asm
	nop		; Interrupt code would go here
	nop
	retfie


	end

⌨️ 快捷键说明

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