strings.inc

来自「PKE(被动无钥门禁系统」· INC 代码 · 共 38 行

INC
38
字号
;---------------------------------------------------------------------------------------------------------
; Strings.inc                     
;
;	Jan Ornter
;
;	DATE:	11-9-2005
;	VER.:	1.0


	extern String.ReadFromPGM, String.Hex2ASCII, String.HexArray2String, String.GetLength, String.Char2String, String.Append, String.Copy

;------------------------------------------------------------------------------+
;                                                                              |
;    Module Strings                                                            |
;                                                                              |
;------------------------------------------------------------------------------+
;                                                                              |
;    This module provides useful functions to operate with strings.            |
;    But when using these functions, you should always remember, that          |
;    they are capable of overwriting the complete RAM on your device,          |
;    if not used the correct way. This will most likely happen, if a           |
;    string read by one of these functions is not terminated with the          |
;    end of string character ('\0').                                           |
;                                                                              |
;                                                                              |
;------------------------------------------------------------------------------+
String.ReadPGM2RAM	macro	Prog, RAM
	movlw	upper Prog
	movwf	TBLPTRU
	movlw	high Prog
	movwf	TBLPTRH
	movlw	low Prog
	movwf	TBLPTRL
	lfsr	FSR2,RAM
	movlw	high RAM
	call	String.ReadFromPGM
	endm

⌨️ 快捷键说明

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