亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? lfmem.asm

?? 2407 開發(fā)板自帶的示例代碼
?? ASM
字號(hào):
;*********************************************************************
; File Name:     lfmem.asm
; Target System: C240x Evaluation Board
;
; Description:   This program checks the memory locations B0, B1, 
;                B2, and External Data of the F2407 EVM Development Board.
;
;                Flashes the LEDs according to the results.
;                   1. Start flash - Odd LEDs (5,7) 
;                                    then Even LEDs (4,6)
;                   2. B0 flash
;                   3. B1 flash
;                   4. B2 flash
;                   5. Data flash
;
;                LEDS DS4-DS5 = Okay; DS6-DS7 = Not Okay
;
;                Errors per block can be viewed in variables	
;                B0_ERRORS, B1_ERRORS, B2_ERRORS, DATA_ERRORS
;                by using a watch window.
;
;                Words in memory locations are set 
;                   HIGH if bad; LOW if okay
;
; Revision:      1.00
;
;*********************************************************************
		.include	240x.h
;---------------------------------------------------------------------
; I/O Mapped EVM Register Declarations
;---------------------------------------------------------------------
DAC0     	.set    0000h		;DAC Channel 0 Register
DAC1     	.set    0001h		;DAC Channel 1 Register
DAC2     	.set    0002h		;DAC Channel 2 Register
DAC3     	.set    0003h		;DAC Channel 3 Register
DAC_UPDATE  .set    0004h		;DAC Update Register
SWITCHES	.set    0008h		;DIP Switch Register
LEDS      	.set    000Ch		;LEDs Register
temp		.set	8000h

;---------------------------------------------------------------------
; Variable Declarations for on chip RAM Blocks
;---------------------------------------------------------------------
		.bss	GPR0,1		;General Purpose Register 
		.bss	GPR1,1		;General Purpose Register 
		.bss	LED_STATUS,1	;LED Status Register
		.bss	RPT_NUM,1
		.bss	mSEC,1	

		.bss	B0_ERRORS,1
		.bss	B1_ERRORS,1
		.bss	B2_ERRORS,1
		.bss	DATA_ERRORS,1

;---------------------------------------------------------------------
; Constant Declarations
;---------------------------------------------------------------------
B0_SADDR	.set	00200h	;Block B0 start address
B0_EADDR	.set	002FFh	;Block B0 end address
B0_LENGTH	.set	0100h		;Length of Block B0

B1_SADDR	.set	00300h	;Block B1 start address
B1_EADDR	.set	003FFh	;Block B1 end address
B1_LENGTH	.set	0100h		;Length of Block B1

B2_SADDR	.set	00060h	;Block B2 start address
B2_EADDR	.set	0007Fh	;Block B2 end address
B2_LENGTH	.set	00020h	;Length of Block B2

DATA_SADDR	.set	08000h	;External Data Start Address
DATA_EADDR	.set	0FFFFh	;External Data End Address
DATA_LENGTH	.set	08000h	;Length of Data

OCCUPIED	.set	9		;Number of B2 locations used with .bss

;===========================================================================================
; V E C T O R    T A B L E    ( including RT monitor traps )
;===========================================================================================
 
        	.copy		"vector.h" 
 
;==========================================================================================
; M A I N   C O D E  - starts here
;==========================================================================================
			.text
START:  LDP		#0h
		SETC	INTM			;Disable interrupts
		SETC	CNF
		SPLK	#0h, IMR		;Mask all Ints
		LACC	IFR				;Read Interrupt flags
		SACL	IFR				;Clear all interrupt flags

		CLRC	SXM			;Clear Sign Extension Mode
		CLRC	OVM			;Reset Overflow Mode
		CLRC	CNF			;Config Block B0 to Data mem.   
		 
		LDP		#00E0h 
        SPLK	#0285h, SCSR1	; x2 PLL, ADC en, EV1 en, clr Ill Addr flg		

		SPLK	#006Fh, WDCR 	;Disable WD if VCCP=5V
		KICK_DOG

		SPLK	#0h, GPR0	;Set 1 wait states for I/O space
		OUT		GPR0, WSGR


		SPLK	#0h,LED_STATUS		;Clear the LED Status Register
		OUT		LED_STATUS,LEDS		;Turn off all the LEDS



		SPLK	#0h,B0_ERRORS		;Initialize the number of errors in B0
		SPLK	#0h,B1_ERRORS		;Initialize the number of errors in B1
		SPLK	#0h,B2_ERRORS		;Initialize the number of errors in B2
		SPLK	#0h,DATA_ERRORS		;Initialize the number of errors in DATA


		LAR		AR1,#B0_SADDR		;AR1 = Start Address of B0
		LAR		AR2,#B0_LENGTH-1	;AR2 = Length of B0 - 1
		LAR		AR3,#B0_ERRORS		;AR3 = Number of errors in B0
		LAR		AR4,#GPR1			;AR4 = General Purpose Register
		
		CALL	CHECK_RAM			;Check all the locations in block B0

		LAR		AR1,#B1_SADDR		;AR1 = Start Address of B1
		LAR		AR2,#B1_LENGTH-1		;AR2 = Length of B1 - 1
		LAR		AR3,#B1_ERRORS		;AR3 = Number of errors in B1

		CALL	CHECK_RAM			;Check all the locations in block B1

		LAR		AR1,#B2_SADDR+OCCUPIED		;AR1 = Address in B2 after .bss variables
		LAR		AR2,#B2_LENGTH-1-OCCUPIED	;AR2 = Length of B2 - 1 - .bss variables
		LAR		AR3,#B2_ERRORS			;AR3 = Number of errors in B2

		CALL	CHECK_RAM			;Check all the unused locations in block B2

		LAR		AR1,#DATA_SADDR		;AR1 = Start address of External Data
		LAR		AR2,#DATA_LENGTH-1	;Ar2 = Lenght of Exaternal Data - 1
		LAR		AR3,#DATA_ERRORS		;AR3 = Number of errors in External Data

		CALL	CHECK_RAM			;Check all the locations in External Data

		LDP		#0				;DP = 0; Addresses 0000h to 007Fh
		SPLK	#5000,mSEC			;mSEC = 5000 -> 0.5 sec
		CALL	FLASHING			;Flash the LEDS according to the results


;=====================================================================
; Routine Name: 	FLASHING
; Originator: 	Allister Chang
;
; Description:	Routine for the end of the program.  Continually 
;			flashes the LEDS, identifing the areas of RAM that
;			did not pass.  
;
;			Starts by flashing every other LED corresponding to AA
;			then flashes the other LEDs corresponding to 55
;			Next flash indicates B0 
;				if LEDs 1-4 lit = Okay; if LEDs 5-8 lit = Not Okay
;			Next flash indicates B1, then B2, then external DATA
;			Flash cycle then repeats			
;			
;=====================================================================

FLASHING	SPLK	#00AAh,LED_STATUS		;Store AAh into LED_STATUS
			OUT		LED_STATUS,LEDS		;Light LEDS, DS8,DS6,DS4,DS2
			CALL	mS_DELAY			;Delay
			SPLK	#0055h,LED_STATUS		;Store 55h into LED_STATUS
			OUT		LED_STATUS,LEDS		;Light LEDS, DS7,DS5,DS3,DS1
	        CALL	mS_DELAY			;Delay

	

			LACC	B0_ERRORS			;ACC = Number of B0_ERRORS
			CC		OKAY,EQ			;If 0, light DS1-DS4
			LACC	B0_ERRORS			;Reload Number of B0_ERRORS
			CC		BAD,NEQ			; need to reload because if
							; OKAY is already executed
							; ACC will not equal 0.
							;If not 0, light DS5-DS8

			LACC	B1_ERRORS			;ACC = Number of B1_ERRORS
			CC		OKAY,EQ			;If 0, light DS1-DS4
			LACC	B1_ERRORS			
			CC		BAD,NEQ			;If not 0, light DS5-DS8

			LACC	B2_ERRORS			;ACC = Number of B2_ERRORS
			CC		OKAY,EQ			;If 0, light DS1-DS4
			LACC	B2_ERRORS
			CC		BAD,NEQ			;If not 0, light DS5-DS8

			LACC	DATA_ERRORS			;ACC = Number of DATA_ERRORS
			CC		OKAY,EQ			;If 0, light DS1-DS4
			LACC	DATA_ERRORS		
			CC		BAD,NEQ			;If not 0, light DS5-DS8

			B		FLASHING			;Repeat Flash Cycle

;=====================================================================
; Routine Name: 	OKAY
; Originator: 	Allister Chang
;
; Description:	Flashes the LEDs when the number of errors in a 
;			RAM block equals 0.  LEDs lit equivalent to 0Fh
;			
;=====================================================================

OKAY	SPLK	#000Fh,LED_STATUS		;Set lower bits of LED_STATUS high
		OUT		LED_STATUS,LEDS		;Light lower LEDS - DS1-DS4
		CALL	mS_DELAY			;Delay
		SPLK	#0000h,LED_STATUS		;Clear the LED_STATUS
		OUT		LED_STATUS,LEDS		;Turn off LEDs
		CALL	mS_DELAY			;Delay
		RET					;Exit Routine

;=====================================================================
; Routine Name: 	BAD
; Originator: 	Allister Chang
;
; Description:	Flashes the LEDs when the number of errors in a RAM
;			block does not equal 0.  LEDs lit equivalent to F0h
;			
;=====================================================================

BAD		SPLK	#00F0h,LED_STATUS		;Set upper bits of LED_STATUS high
		OUT		LED_STATUS,LEDS		;Light upper LEDS - DS5-DS8
		CALL	mS_DELAY			;Delay
		SPLK	#0000h,LED_STATUS		;Clear the LED_STATUS
		OUT		LED_STATUS,LEDS		;Turn off LEDS
		CALL	mS_DELAY			;Delay
		RET					;Exit Routine

;=====================================================================
; Routine Name: 	CHECK_RAM
; Originator: 	Allister Chang
;
; Description:	Checks all of the words in a particular block of  
;			memory.  Uses the "checkboard" method (5555/AAAA)
;			to ensure no leakage between bits.
;
; Calling Convention:
;
; Variables			on Entry			on Exit
; --------------------------------------------------------------------
;   ARP			XX				AR1
;   ACC			XX				XX
;   AR1			Start address of block	End address of block
;   AR2			Length of block - 1	FFFFh
;   AR3			Addr. of Error Variable	Address of Error Variable
;   AR4			Addr. of GPR1		Addr. GPR1
; --------------------------------------------------------------------
;=====================================================================

CHECK_RAM	MAR		*,AR1			;ARP = AR1
			SPLK	#5555h,*,AR4	;Store 5555h into test location, ARP = AR4
			SPLK	#0000h,*,AR1	;Clear the data bus, ARP = AR1
			LACC	*			;Load the value from test location
			SUB		#5555h		;Subtract 5555h from value
			BCND	MARK,NEQ		;Equals 0 -> location is okay
						;else set all bits high

			SPLK	#0AAAAh,*,AR4	;Store AAAAh into test location, ARP = AR4
			SPLK	#0000h,*,AR1	;Clear the data bus, ARP = AR1
			LACC	*			;Load value from test location
			SUB		#0AAAAh		;Subtract AAAAh from value
			BCND	MARK,NEQ		;Equals 0 -> location is okay
						;else set all bits high

			SPLK	#0000h,*+,AR2	;Clear the bits from the test location if okay
RESUME		BANZ	CHECK_RAM,*-,AR1	;Repeat check for the next test location
			RET				;Exit routine

MARK		SPLK	#0FFFFh,*+,AR3	;Set all bits high, ARP = AR3
			LACC	*			;Load ACC with number of Errors
			ADD		#1			;Increment Error Counter
			SACL	*,0,AR2		;Store new value of Error Counter, ARP = AR2
			BANZ	CHECK_RAM,*-,AR1	;Repeat check for the next location
			RET				;Exit routine
				
;=====================================================================
; Routine Name: 	mS_DELAY
; Originator: 	Scott Roller
;
; Description:	Produces a multiple of 0.1mS delays using the RPT 
;			instruction. The Delay produced is based on the 
;			value loaded in mSEC (i.e. Delay = mSEC x 0.1mS).
;			Indirect addressing is used to count the number
;			of times the delay loop is repeated.
;
; Calling Convention:
;
; Variables			on Entry			on Exit
; --------------------------------------------------------------------
;   DP			XX				0x0000
;   ARP			XX				AR1
;   ACC			XX				XX
;   mSEC	     		value in 0.1 mS		un-touched
; --------------------------------------------------------------------
;=====================================================================
mS_DELAY:	LDP		#0h				;DP-->0000h-007Fh
			LACC	#2000				;Load RPT value to GPR0
			SACL	RPT_NUM
			LAR		AR1,mSEC			;Set AR0 to generate a
			MAR		*,AR1				;(AR0*0.1)mSEC delay loop

mS_LOOP:	LDP		#0h				;DP-->0000h-007Fh
			RPT		RPT_NUM			;2000 cycles = 0.1mS
			NOP					;1 cycle
			BANZ	mS_LOOP			;Repeat DELAY_LOOP
			RET					;Return from DELAY SR

;=====================================================================
; I S R  -  PHANTOM
;
; Description:	Dummy ISR, used to trap spurious interrupts.
;
; Modifies:	Nothing
;
; Last Update:	16 June 95
;=====================================================================
PHANTOM    KICK_DOG				;Resets WD counter
		   B	PHANTOM

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人99免费视频| 国产精品久久久久久久久晋中 | 午夜国产精品影院在线观看| 日韩电影在线一区二区三区| 国产精品99精品久久免费| 91日韩在线专区| 欧美成人vps| 亚洲视频资源在线| 亚洲一区二区三区视频在线播放| 日本aⅴ免费视频一区二区三区 | 国产日韩高清在线| 亚洲一区二区精品久久av| 国产一区二区精品在线观看| 2024国产精品| 亚洲天堂精品视频| 捆绑调教美女网站视频一区| av在线一区二区三区| 制服丝袜亚洲播放| 中文字幕一区视频| 青青青爽久久午夜综合久久午夜| 成人av在线播放网址| 欧美久久久久久久久久| 久久蜜桃一区二区| 午夜精品久久久久久久99樱桃| 国产精品亚洲午夜一区二区三区| 在线观看91精品国产入口| 精品99999| 亚洲午夜电影在线观看| 成人激情电影免费在线观看| 日韩三级在线免费观看| 一区2区3区在线看| 国产成人亚洲综合色影视| 欧美电影一区二区| 亚洲欧美日韩成人高清在线一区| 久久国产精品72免费观看| 色欧美乱欧美15图片| 国产女主播一区| 精品一二线国产| 欧美精品丝袜久久久中文字幕| 亚洲欧洲精品一区二区三区| 国产乱码精品一区二区三区av| 欧美视频一区在线观看| 国产精品久久久久久久岛一牛影视| 免费在线一区观看| 欧美性生活影院| 亚洲视频中文字幕| 成人午夜激情片| 久久综合色一综合色88| 日韩成人免费电影| 欧美亚日韩国产aⅴ精品中极品| 国产精品天美传媒| 国产精品911| 久久久午夜精品理论片中文字幕| 日韩av一级电影| 欧美三级资源在线| 一二三区精品福利视频| 97久久久精品综合88久久| 日韩av电影免费观看高清完整版| 91一区一区三区| 国产精品人人做人人爽人人添| 久久精品国产亚洲高清剧情介绍| 欧美精品久久久久久久多人混战 | 日本高清视频一区二区| 国产片一区二区| 国产成人av影院| 国产亚洲婷婷免费| 国产露脸91国语对白| 26uuu精品一区二区三区四区在线| 免费久久99精品国产| 欧美一区二区私人影院日本| 亚洲国产日日夜夜| 欧美日韩高清在线播放| 日日夜夜精品视频天天综合网| 欧美日韩一区二区三区免费看| 亚洲午夜久久久久中文字幕久| 91福利精品视频| 亚洲一二三专区| 欧美日韩二区三区| 丝瓜av网站精品一区二区| 欧美一级欧美三级| 老鸭窝一区二区久久精品| 欧美大尺度电影在线| 韩国毛片一区二区三区| 久久亚洲精精品中文字幕早川悠里 | 国产高清久久久| 国产精品色哟哟| 99r国产精品| 一区二区三区小说| 欧美日韩亚洲不卡| 另类的小说在线视频另类成人小视频在线| 日韩精品专区在线影院重磅| 国产最新精品精品你懂的| 欧美国产精品久久| 91免费视频网址| 午夜精品久久久久影视| 日韩欧美国产一二三区| 国产乱对白刺激视频不卡| 国产精品色一区二区三区| 在线区一区二视频| 日韩电影在线观看网站| 国产亚洲精品bt天堂精选| 99久久精品免费| 亚洲成人激情自拍| 精品国产一区二区国模嫣然| 99久久综合国产精品| 亚洲成人av资源| 久久亚洲捆绑美女| 一本色道久久综合狠狠躁的推荐| 亚洲成人www| 国产偷v国产偷v亚洲高清| 91麻豆swag| 蜜臀av性久久久久蜜臀av麻豆| 久久久亚洲午夜电影| 在线精品视频一区二区三四| 免费一级欧美片在线观看| 国产精品女主播在线观看| 欧美午夜精品免费| 国产一区二区免费视频| 亚洲综合一区在线| 久久久噜噜噜久久中文字幕色伊伊 | 亚洲h精品动漫在线观看| 日韩欧美三级在线| 97精品国产97久久久久久久久久久久| 香蕉久久夜色精品国产使用方法 | 国产成人免费在线观看| 亚洲精品伦理在线| 日韩精品一区二区三区swag| 色综合久久久网| 韩日欧美一区二区三区| 一区二区三区**美女毛片| 精品99久久久久久| 欧美日韩精品二区第二页| 国产传媒久久文化传媒| 午夜成人免费电影| 亚洲欧洲成人av每日更新| 日韩视频不卡中文| 91国内精品野花午夜精品| 国产黄色成人av| 免费不卡在线观看| 一区二区三区.www| 国产精品嫩草久久久久| 欧美成人video| 欧美偷拍一区二区| av在线免费不卡| 九色porny丨国产精品| 亚洲一区二区综合| 国产精品久99| 久久午夜羞羞影院免费观看| 欧美丝袜第三区| 97精品电影院| 成人免费视频app| 麻豆国产精品一区二区三区 | 9191精品国产综合久久久久久| 成人h动漫精品一区二| 国产麻豆一精品一av一免费| 亚洲一区二区中文在线| 亚洲欧美激情小说另类| 国产精品每日更新在线播放网址| 日韩精品一区二区三区四区| 欧美日韩一区三区四区| 91成人国产精品| 91丝袜美女网| 成人免费黄色在线| 国产一区视频导航| 黄页网站大全一区二区| 日本中文一区二区三区| 亚洲第一在线综合网站| 亚洲激情六月丁香| 亚洲乱码一区二区三区在线观看| 中文字幕不卡的av| 国产丝袜美腿一区二区三区| 欧美精品一区二区在线观看| 日韩欧美中文字幕制服| 91精品国产综合久久精品app| 欧美午夜一区二区三区免费大片| 色哟哟欧美精品| 91免费版在线| 99精品国产视频| 色综合中文字幕国产 | 中文字幕一区二区三区在线播放| 国产亚洲女人久久久久毛片| 久久久另类综合| 国产亚洲欧洲997久久综合| 国产亚洲综合性久久久影院| 欧美激情中文字幕| 中文欧美字幕免费| 国产精品国产三级国产| 中文字幕字幕中文在线中不卡视频| 国产精品理论在线观看| 国产精品成人免费在线| 亚洲日本欧美天堂| 一区二区三区在线视频观看| 一区二区三区高清| 亚洲va欧美va人人爽| 91亚洲大成网污www| 99re8在线精品视频免费播放| 一本大道综合伊人精品热热| 欧美综合色免费| 欧美高清精品3d| 精品久久人人做人人爽|