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

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

?? xmdstub.s

?? Xilinx XC4VSX35為核心的 XtremeDSP Development Kit-IV 開發(fā)板的例程
?? S
?? 第 1 頁 / 共 2 頁
字號:
/*----------------------------------------------------------------------
 *
 * Copyright (c) 2005 Xilinx, Inc.  All rights reserved. 
 * Xilinx, Inc. 
 *
 * XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A 
 * COURTESY TO YOU.  BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS 
 * ONE POSSIBLE   IMPLEMENTATION OF THIS FEATURE, APPLICATION OR 
 * STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION 
 * IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE 
 * FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION. 
 * XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO 
 * THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO 
 * ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE 
 * FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY 
 * AND FITNESS FOR A PARTICULAR PURPOSE. 
 *
 * $Header: $
 * $Id: $
 *
 *	XMD_stub version 1.0                        
 *      MicroBlaze                                  
 *      Author: G鰎an Bilski                        
 *      Created:  11 Juli 2001	                   
 *      Modified: 20 Sept 2001                      	
 *	Modified: 08 Nov  2001                     
 *	Modified: 12 Mar  2002 (jece & navanee)    	
 *	Modified: 25 Aug  2004 (navanee)
 *	Modified: Jan 2005 (Raj - Added Half Word/Byte Read & Write)	 
 *
 ----------------------------------------------------------------------*/

	.globl  _start	
	.text
	.align	2
	.globl	xmd_stub
	.ent	xmd_stub
_start:
xmd_stub:
	.equ uart_rx_data,         DEBUG_PERIPHERAL_BASEADDRESS
	.equ uart_tx_data,         DEBUG_PERIPHERAL_BASEADDRESS +  4
	.equ uart_stat,	           DEBUG_PERIPHERAL_BASEADDRESS +  8
	.equ uart_ctrl,		   DEBUG_PERIPHERAL_BASEADDRESS + 12
	
	.equ uart_tx_buffer_empty, 0b100
	.equ uart_rx_data_valid,   0b001
	
	.equ uart_rst_rx_fifo,      0b010
	.equ uart_rst_tx_fifo,      0b001
	
	.equ Reached_End_Of_Program, 0x00
	.equ Reached_Breakpoint,     0x01
	.equ Received_brk_signal,    0x02
	.equ ProcReset_signal,       0x03
	.equ Escape_Char,            0xFC
	.equ ReSync_Char,            0xFE
	.equ Stub_ID,                0x40

	.equ Reset_TxFifo,	     0x01
	.equ Reset_RxFifo,	     0x02
	.equ Clear_ExtBreak,	     0x04
	.equ Intr_Enabled,	     0x10
	
	.equ version, 3

	/*--------------------------------------------------*/
	/* MicroBlaze jump table                            */
        /* 0x0  - Reset address                             */	
	/* 0x8  - Exception address                         */
        /* 0x10 - Interrupt address                         */
        /* 0x18 - Break signal address (short branch)       */
	/* 0x1c - Breakpoint address (short branch)         */	
	/* 0x20 - Hardware Exception addr (MB ref guide)    */
        /* 0x28 - Program Exit(crt1.s) (short branch)       */
	/*--------------------------------------------------*/
		
	brki r16, StartUp_Entry
	nop
	nop
	nop	
	nop
	nop
	bri Brk_Signal_Entry
	bri Debug_Entry
	nop
	nop
	bri Program_Exit

	/*--------------------------------------------------*/
	/* ReSync                                           */
	/* - Remove any stale data from the RX and TX fifo  */
	/* - Send back the stubID + version number          */
	/*--------------------------------------------------*/
ReSync:
	lwi  r15, r0, uart_stat
	andi r15,r15, Intr_Enabled
	ori  r15, r15, uart_rst_tx_fifo + uart_rst_rx_fifo
	swi  r15, r0, uart_ctrl
	brlid r29,Wait_for_TX_space
	addi r30,r0,Stub_ID + version
	swi  r30,r0,uart_tx_data

	/*--------------------------------------------------*/
	/* Main command entry code                          */
	/* - Wait for the next command                      */
	/*    0 = Download Program                          */
	/*    4 = Continue                                  */
	/*    8 = Read Registers                            */
	/*   12 = Write Register                            */
	/*   16 = Read Memory                               */
	/*   20 = Write Memory                              */
	/*   24 = Resync                                    */
	/*   28 = Return Debug Addr - Deprecated	    */
	/*   32 = Continue				    */	
	/*   36 = SingleStep                                */
	/*   40 = Read Memory Half Word			    */
	/*   44 = Read Memory Byte			    */
	/*   48 = Write Memory Half Word		    */
	/*   52 = Write Memory Byte			    */
	/* - Call the command without any link              */
	/*--------------------------------------------------*/
Wait_for_command:
	brlid r29,Get_Char
	nop
	lwi r29,r3,jump_table
	bra r29

	/*--------------------------------------------------*/
	/* This section will end up in the rodata section    */
	/* Is place here for helping understanding the code */
	/*--------------------------------------------------*/
	.rodata
	.align 2
jump_table:
  	.int Load_Memory
  	.int Execute
  	.int Read_Register 
  	.int Write_Register
	.int Read_Memory
  	.int Write_Memory 
	.int ReSync
	.int Return_Dbg_Addr
	.int Continue
	.int SingleStep
	.int Read_Memory_Half
	.int Read_Memory_Byte
	.int Write_Memory_Half
	.int Write_Memory_Byte
	
	/*--------------------------------------------------*/
	/* Go back to the text section(instruction)         */
	/*--------------------------------------------------*/	
	.text


	/*--------------------------------------------------*/	
	/* Read all registers command                       */
	/* Get the values of all registers                  */
	/*   from the register_dump where the register      */
	/*   values are stored                              */
	/* - Send all values to the terminal (through UART) */
	/*   33 words will be sent: 1-31 and pc and msr     */
	/*   Note that the pc value sent is always incorrect*/
	/*   It has to be in the table for consistency      */
	/* - Jump to the main command entry code            */
	/*--------------------------------------------------*/	
Read_Register:	
	addi r28, r0, register_dump+4
	addi r26, r0, 33
Read_Register_1:		
	brlid r15, Send_32Bit
	lw   r5, r28, r0
	addi r26,r26,-1
	bneid r26, Read_Register_1
	addi r28,r28,4
	bri Wait_for_command
	
	/*--------------------------------------------------*/	
	/* Write to a register value command                */
	/* - Get a byte which is the register asked for     */
	/*   The byte has to be Register_Number*4,          */
	/*   since the value will be used as word address   */
        /*   and the addressing is always in byte addresses */
	/*   ex. Want to see value of register 15           */
	/*       The byte value has to be 4*15 = 60         */
	/* - Get 32 bits (4 bytes) which is the new value   */
	/*   for the register                               */
	/* - Store the new value to the stored value for    */
	/*   that register from the register_dump where the */
	/*   register values are stored                     */
	/* - Jump to the main command entry code            */
	/*--------------------------------------------------*/	
Write_Register:	
	/* Write a register value                    */
	/* Next byte is which register               */
	/* Next four bytes is the new register value */
	brlid r29,Get_Char
	nop
	brlid r15,Get_32Bit
	or r28,r3,r0
	swi r3,r28,register_dump
	bri Wait_for_command


	/*--------------------------------------------------*/	
	/* Read from memory command                         */
	/* - Get 32 bits (4 bytes) which is the memory      */
	/*   address.                                       */
	/* - Read the value from that memory address        */
	/*   for the register                               */
	/* - Send that value to the terminal (through UART) */
	/* - Jump to the main command entry code            */
	/*--------------------------------------------------*/	
Read_Memory:
	/* Next four bytes is the address */
	/* The response will be the value in that address */
	/* send as four bytes */
	brlid r15,Get_32Bit
	nop
	brlid r15,Send_32Bit
	lw r5,r3,r0
	bri Wait_for_command

	/*--------------------------------------------------*/	
	/* Read from memory Half Word command               */
	/* - Get 32 bits (4 bytes) which is the memory      */
	/*   address.                                       */
	/* - Read the value from that memory address        */
	/*   for the register                               */
	/* - Send that value to the terminal (through UART) */
	/* - Jump to the main command entry code            */
	/*--------------------------------------------------*/	
Read_Memory_Half:
	/* Next four bytes is the address */
	/* The response will be the value in that address */
	/* send as two bytes */
	brlid r15,Get_32Bit
	nop
	brlid r15,Send_16Bit
	lhu r5,r3,r0
	bri Wait_for_command

	/*--------------------------------------------------*/	
	/* Read from memory Byte command                    */
	/* - Get 32 bits (4 bytes) which is the memory      */
	/*   address.                                       */
	/* - Read the value from that memory address        */
	/*   for the register                               */
	/* - Send that value to the terminal (through UART) */
	/* - Jump to the main command entry code            */
	/*--------------------------------------------------*/		
Read_Memory_Byte:
	/* Next four bytes is the address */
	/* The response will be the value in that address */
	/* send a byte */
	brlid r15,Get_32Bit
	nop
	brid Send_Status
	lbu r15,r3,r0

	/*--------------------------------------------------*/	
	/* Write to memory command                          */
	/* - Get 32 bits (4 bytes) which is the memory      */
	/*   address.                                       */
	/* - Get 32 bits (4 bytes) which is the new value   */
	/*   for that memory address.                       */
	/* - Write the new value to the memory.             */
	/* - Jump to the main command entry code            */
	/*--------------------------------------------------*/	
Write_Memory:
	/* Next four byte is the address */
	/* Then the next four byte is the new data */
	brlid r15,Get_32Bit
	nop
	brlid r15,Get_32Bit
	or r28,r3,r0
	swi r3,r28,0
	bri Wait_for_command

Write_Memory_Half:
	/* Next four bytes is the address */
	/* Then the next two bytes is the new data */
	brlid r15,Get_32Bit
	nop
	brlid r15,Get_16Bit
	or r28,r3,r0
	shi r3,r28,0
	bri Wait_for_command

Write_Memory_Byte:
	/* Next four byte is the address */
	/* Then the next byte is the new data */
	brlid r15,Get_32Bit
	nop
	brlid r29,Get_Char
	or r28,r3,r0
	sbi r3,r28,0
	bri Wait_for_command	

	/*--------------------------------------------------*/	
	/* Download program command                         */
	/* - Get 32 bits (4 bytes) which is the start       */
	/*   address for the downloading                    */
	/* - Get 32 bits (4 bytes) which is the number of   */
	/*   bytes in the downloading                       */
	/* - Loop                                           */
	/*   - Get a byte                                   */
	/*   - Store it at the memory address               */
	/*   - Increment the memory address with 1          */
	/*   - Decrement the number of bytes by 1           */
	/*   - Continue until all bytes has been received   */
	/* - Jump to the main command entry code            */
	/*--------------------------------------------------*/	
Load_Memory:	
	/* Next 4 bytes is the start address */
	/* The next four bytes is the number of bytes */
	brlid r15,Get_32Bit
	nop
	brlid r15,Get_32Bit
	or r28,r3,r0
	or r25,r3,r0
Load_Memory_1:	
	brlid r29,Get_Char
	addi r25,r25,-1
	sb r3,r28,r0
	bneid r25,Load_Memory_1
	addi r28,r28,1
	bri Wait_for_command				



	/*--------------------------------------------------*/
	/* NOTE : EXECUTE FOR THE SAKE OF COMPATIBILITY WITH MDK 2.2 */
	/* Execute program command                          */
	/* - Get 32 bits (4 bytes) which is the memory      */
	/*   address.                                       */
	/* - Load all register from the register_dump       */
	/*--------------------------------------------------*/	
Execute:
	/* Next four byte is the start address */
	brlid r15,Get_32Bit
	nop
	/* Set the R16 value in the reg dump to the start addr  */
	/* When control falls thru to the Continue command      */
	/* it will start execution from the addr in the new R16 */
	swi r3,r0,register_dump+64
	/* Fall thru to the following Continue command */

	
	/*--------------------------------------------------*/
	/* Continue command                                 */
	/* continue at the instruction after the brk        */
	/*  - Restore all registers                         */
	/*  - jump to the address for the BRK instruction   */
	/*--------------------------------------------------*/
Continue:
	brlid r15, Get_All_Registers
	nop
	rtbd r16, 0
	lwi r15,r0,register_dump+15*4


	/*--------------------------------------------------*/
	/* SingleStep command                               */
	/* step single instruction without enabling         */
	/* the BIP flag                                     */
	/*  - Restore all registers                         */
	/*  - jump to the address for the BRK instruction   */
	/*--------------------------------------------------*/

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区日韩欧美| 亚洲国产一区二区三区青草影视| 欧美日本一区二区| 色婷婷激情久久| 99re热这里只有精品视频| 国产成人在线视频免费播放| 久久99精品视频| 国产专区综合网| 风间由美一区二区av101| 懂色av一区二区三区免费观看| 国产成人免费高清| 91色在线porny| 欧美在线free| 欧美一区二区日韩| 久久久久9999亚洲精品| 国产日产欧美一区| 综合精品久久久| 亚洲va欧美va人人爽午夜| 麻豆久久久久久| 成人看片黄a免费看在线| 色婷婷国产精品久久包臀| 欧美日韩国产综合久久| 日韩欧美三级在线| 中文字幕av一区二区三区高 | 欧美综合在线视频| 欧美日韩免费在线视频| 精品美女在线播放| 自拍偷拍欧美激情| 日韩电影免费一区| 国产伦精一区二区三区| aaa国产一区| 日韩欧美国产wwwww| 国产精品久久久久婷婷| 夜夜夜精品看看| 韩国v欧美v亚洲v日本v| 91网站最新地址| 91精品欧美福利在线观看| 国产日韩欧美麻豆| 偷拍一区二区三区四区| 丰满亚洲少妇av| 日韩欧美亚洲一区二区| 一区二区三区国产精品| 国产精品资源网站| 555夜色666亚洲国产免| 国产精品国产精品国产专区不蜜| 日韩电影在线免费观看| 94-欧美-setu| 欧美精品一区二区三区在线 | 一本久久a久久精品亚洲| 欧美一级一级性生活免费录像| 国产欧美精品一区二区色综合朱莉| 一区2区3区在线看| 国产成人免费xxxxxxxx| 日韩精品一区二区三区三区免费 | 亚洲国产精品ⅴa在线观看| 日本亚洲免费观看| 91国内精品野花午夜精品| 一区二区三区在线观看网站| 精品一区二区在线视频| 欧美日韩午夜精品| 亚洲无线码一区二区三区| 91香蕉视频污在线| 国产精品久久精品日日| 国产精品白丝av| 亚洲精品一线二线三线无人区| 午夜久久久影院| 在线免费观看一区| 亚洲乱码国产乱码精品精可以看| 粉嫩嫩av羞羞动漫久久久| 精品99一区二区三区| 麻豆成人91精品二区三区| 3751色影院一区二区三区| 亚洲图片有声小说| 在线精品视频免费播放| 一区二区三区国产精品| 欧美在线一二三四区| 亚洲一区二区在线视频| 欧美在线观看一二区| 亚洲超碰精品一区二区| 8x8x8国产精品| 轻轻草成人在线| 久久众筹精品私拍模特| 国产精品一二三区| 中文字幕国产一区二区| av毛片久久久久**hd| 亚洲免费在线播放| 欧美日韩在线免费视频| 蜜臀久久99精品久久久久宅男| 欧美电视剧免费观看| 国产一区在线看| 中文字幕制服丝袜一区二区三区| 91玉足脚交白嫩脚丫在线播放| 一区二区三区中文字幕在线观看| 欧美视频一区二区| 韩国女主播一区| 国产精品嫩草99a| 日本高清免费不卡视频| 天天影视网天天综合色在线播放| 欧美一级电影网站| 成人午夜电影小说| 亚洲成人综合在线| 26uuu久久天堂性欧美| 91一区二区三区在线观看| 91在线国产观看| 视频一区中文字幕国产| 久久久五月婷婷| 91农村精品一区二区在线| 午夜影视日本亚洲欧洲精品| 精品国产乱码久久久久久老虎| 成人av高清在线| 肉色丝袜一区二区| 国产精品久久久久久久久免费樱桃| 欧美日韩精品系列| 国产成人超碰人人澡人人澡| 一区2区3区在线看| 国产女人水真多18毛片18精品视频 | 国产校园另类小说区| 99re热视频精品| 久久精品久久99精品久久| 国产精品久久久久一区| 精品国产污污免费网站入口 | 91丨九色丨尤物| 男人操女人的视频在线观看欧美| 国产精品午夜免费| 欧美成人女星排名| 色婷婷综合久色| 国产999精品久久久久久绿帽| 亚洲二区在线观看| 成人欧美一区二区三区视频网页| 7777精品伊人久久久大香线蕉| 99国产麻豆精品| 狠狠色狠狠色综合日日91app| 丝袜美腿成人在线| 亚洲综合无码一区二区| 国产精品天干天干在线综合| 日韩精品一区二区在线观看| 欧美日韩你懂的| 欧美日韩你懂得| 91国产丝袜在线播放| 92精品国产成人观看免费| 成人性生交大合| 国产精品羞羞答答xxdd| 精品亚洲aⅴ乱码一区二区三区| 日韩av成人高清| 午夜久久福利影院| 亚洲成人av一区二区| 一区二区三区电影在线播| 亚洲日韩欧美一区二区在线| 中文字幕制服丝袜成人av| 国产日韩亚洲欧美综合| 国产亚洲成av人在线观看导航| 精品国产乱码久久久久久久久| 3d动漫精品啪啪一区二区竹菊| 在线亚洲人成电影网站色www| 94-欧美-setu| 在线观看区一区二| 欧亚洲嫩模精品一区三区| 欧美视频中文字幕| 欧美日韩黄视频| 欧美一区二区不卡视频| 精品奇米国产一区二区三区| 精品久久免费看| 久久精品一区二区三区不卡 | 欧美人与z0zoxxxx视频| 欧美精品九九99久久| 欧美群妇大交群中文字幕| 91精品麻豆日日躁夜夜躁| 日韩视频一区在线观看| 久久久久久久久久久久久久久99| 国产女同性恋一区二区| 亚洲美女一区二区三区| 亚洲成在线观看| 久久精品理论片| av电影在线观看一区| 欧美日韩电影在线播放| 91麻豆精品国产自产在线观看一区| 国产精品久久午夜夜伦鲁鲁| 一区二区三区欧美日韩| 丝袜亚洲另类欧美| 国产激情视频一区二区在线观看| 成人免费黄色大片| 欧美男女性生活在线直播观看| 欧美成人一区二区三区在线观看 | 不卡av在线免费观看| 欧美日韩卡一卡二| 久久综合色鬼综合色| 亚洲私人黄色宅男| 欧美a一区二区| 91美女在线观看| 日韩精品中文字幕一区| 中文字幕日韩一区二区| 热久久一区二区| 99久久国产综合精品色伊| 欧美日韩成人综合在线一区二区| 国产日产欧美一区二区视频| 性久久久久久久久久久久| 国产福利一区二区三区| 91精品国产综合久久精品性色 | 欧美中文字幕亚洲一区二区va在线| 日韩一区二区精品|