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

📄 ram_fill.asm

📁 新华龙C8051F30X系列单片机开发板的测试程序
💻 ASM
字号:
;-----------------------------------------------------------------------------
;	Copyright (C) 2004 Silicon Laboratories, Inc.
;
; 	FILE NAME  	: RAM_FILL.ASM 
;  DATE        : 12 OCT 01
; 	TARGET MCU	: C8051F30x
; 	DESCRIPTION	: This program disables the watchdog timer and fills RAM with 
;				  	  value equal to address.
;
;  	NOTES:
;	(1)	This note intentionally left blank.
;
;
;-----------------------------------------------------------------------------

$include (c8051F300.inc)                  ; Include register definition file

;-----------------------------------------------------------------------------
; EQUATES
;-----------------------------------------------------------------------------


;-----------------------------------------------------------------------------
; VARIABLES
;-----------------------------------------------------------------------------
	
																
;-----------------------------------------------------------------------------
; RESET and INTERRUPT VECTORS
;-----------------------------------------------------------------------------

            ; Reset Vector
            CSEG AT 00h					
            ljmp  Main                    ; Jump beyond interrupt vector 
                                          ; space.

;-----------------------------------------------------------------------------; CODE SEGMENT;-----------------------------------------------------------------------------RAM_Fill    segment  CODE
            rseg     RAM_Fill             ; Switch to this code segment.
            using    0                    ; Specify register bank for the
                                          ; following program code.Main:            ; Disable the WDT.
            anl   PCA0MD, #NOT(040h)      ; clear Watchdog Enable bit            mov   R0, #00H                ; use R0 as pointer to memory location 
loop:       mov   @R0, AR0                ; write to indexed address with 
                                          ; address value
            djnz  R0, loop                ; check if finished
	
            sjmp  $                       ; loop here forever


;-----------------------------------------------------------------------------
; End of file.

END

⌨️ 快捷键说明

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