fill32.s79
来自「AT91SAM7S64芯片flash读写程序」· S79 代码 · 共 42 行
S79
42 行
;------------------------------------------------------------------------------
;- ATMEL Microcontroller Software Support - ROUSSET -
;------------------------------------------------------------------------------
; The software is delivered "AS IS" without warranty or condition of any
; kind, either express, implied or statutory. This includes without
; limitation any warranty or condition with respect to merchantability or
; fitness for any particular purpose, or against the infringements of
; intellectual property rights of others.
;-----------------------------------------------------------------------------
;- File source : fill32.s79
;- Object : Generate a fill memory
;- Compilation flag : None
;-
;- 1.0 18/Aug/04 JPP : Creation
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;- Area Definition
;------------------------------------------------------------------------------
PROGRAM ?RESET
RSEG INTRAMSTART_REMAP
RSEG INTRAMEND_REMAP
RSEG ICODE:CODE:ROOT(2)
CODE32 ; Always ARM mode after reset
org 0
FLASH_SIZE EQU 0x7FF0
FILL MACRO size
Inc SETA 0
REPT size
DCB Inc
Inc SETA Inc + 1
ENDR
ENDM
reset
FILL FLASH_SIZE
ENDMOD
END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?