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

📄 eepwrl.s

📁 cxstm8 编译器
💻 S
字号:
;	WRITE A LONG IN EEPROM
;	Copyright (c) 2008 by COSMIC Software
;	- eeprom address in X
;	- value in LONG accu
;
	xdef	c_eewrl
	xref.b	c_x, c_lreg
	include	"eeprom.i"
	.dcall	"2,0,c_eewrl"
;
c_eewrl:
	ldw	y,#c_lreg	; source address
bcl:
	ld	a,(y)		; get byte
	ld	(x),a		; and store in latch
wait:
	btjt	IAPSR,#EOP,wait ; wait for completion
	incw	y		; next source byte
	incw	x		; next eeprombyte
	cpw	y,#c_lreg+4	; last byte ?
	jrne	bcl		; loop if more
	ret			; return
;
	end

⌨️ 快捷键说明

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