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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xmdstub.s

?? 關于xilinx大學計劃配需教程實驗五源代碼
?? 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: /devl/xcs/repo/env/Jobs/MDT/sw/Apps/debug/xmdstub/src/xmdstub.s,v 1.1.2.6 2005/11/15 23:29:47 salindac Exp $ * $Id: xmdstub.s,v 1.1.2.6 2005/11/15 23:29:47 salindac Exp $ * *	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)	  * ----------------------------------------------------------------------*/	/*--------------------------------------------------*/	/* 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)       */	/*--------------------------------------------------*/	.section .vectors.reset, "ax"	.align 2 _vector_reset:       			brki r16, StartUp_Entry	bri Program_Exit		.section .vectors.debug_sw_break, "ax"        .align 2_vector_debug_sw_break:       			bri Brk_Signal_Entry	bri Debug_Entry        .section .text        .align 2		        .globl _start	.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, 4	/*--------------------------------------------------*/	/* 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 2jump_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, 33Read_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_commandWrite_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_commandWrite_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,r0Load_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   */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品欧美一区二区久久| 欧美亚洲一区三区| 国产欧美一区二区在线观看| 国产呦精品一区二区三区网站| 精品国产精品网麻豆系列| 久久99国产精品尤物| 久久久.com| av影院午夜一区| 夜夜精品视频一区二区| 欧美视频在线不卡| 精品一区二区三区在线视频| 久久一留热品黄| k8久久久一区二区三区| 亚洲一区二区在线视频| 欧美高清一级片在线| 美女视频网站黄色亚洲| 久久精品人人做人人爽97| av日韩在线网站| 亚洲视频图片小说| 欧美在线观看视频在线| 狠狠狠色丁香婷婷综合久久五月| 国产欧美一区二区精品久导航| 色丁香久综合在线久综合在线观看| 亚洲成人免费电影| 国产亚洲va综合人人澡精品| 色综合久久中文综合久久97 | 欧美日韩一区中文字幕| 国产又粗又猛又爽又黄91精品| 亚洲视频在线一区观看| 欧美精品在线一区二区三区| 国产99精品国产| 亚洲影视在线播放| 久久品道一品道久久精品| 在线精品视频免费播放| 国产毛片精品国产一区二区三区| 亚洲在线视频一区| 久久无码av三级| 欧美精品 国产精品| 成人av电影在线| 美国av一区二区| 亚洲综合清纯丝袜自拍| 久久综合久久综合亚洲| 欧美精品久久久久久久多人混战 | 91麻豆免费视频| 麻豆极品一区二区三区| 亚洲女同一区二区| 欧美一区二区三区视频在线观看| 91在线小视频| 国产精品一二三| 日韩极品在线观看| 亚洲精品久久7777| 中文字幕一区二区不卡| 精品粉嫩aⅴ一区二区三区四区| 色94色欧美sute亚洲线路二| 国模冰冰炮一区二区| 一区二区三区四区av| 国产农村妇女毛片精品久久麻豆| 欧美一级搡bbbb搡bbbb| 欧美色倩网站大全免费| 色噜噜偷拍精品综合在线| 成人免费va视频| 国产黄色91视频| 国产自产v一区二区三区c| 日本不卡视频在线| 亚洲国产欧美日韩另类综合| 亚洲啪啪综合av一区二区三区| 欧美国产精品中文字幕| 欧美mv日韩mv亚洲| 4hu四虎永久在线影院成人| 色天天综合久久久久综合片| fc2成人免费人成在线观看播放| 秋霞国产午夜精品免费视频 | 国产麻豆日韩欧美久久| 久久精品国产亚洲a| 欧美a级理论片| 免费精品视频在线| 久久国产生活片100| 免费成人在线视频观看| 日本91福利区| 美女任你摸久久| 免费的成人av| 国产一区999| 波多野结衣精品在线| av男人天堂一区| 欧洲一区二区av| 欧美日韩久久一区| 日韩免费一区二区| 日韩精品一区二区三区在线播放 | 精品国产凹凸成av人网站| 精品国产一区a| 国产亚洲精品精华液| 欧美国产日韩在线观看| 亚洲三级视频在线观看| 亚洲国产精品一区二区久久| 日日夜夜精品免费视频| 奇米综合一区二区三区精品视频| 美国十次了思思久久精品导航| 久久成人av少妇免费| 国产高清久久久久| 色综合久久久久综合| 欧美精品三级日韩久久| 日韩免费看网站| 国产精品美女久久福利网站| 国产一区二区三区免费播放 | www.日韩精品| 欧美三级欧美一级| 久久亚洲一区二区三区四区| 中文字幕一区三区| 奇米一区二区三区av| 国产精品99久久久久久似苏梦涵| 91首页免费视频| 日韩无一区二区| 中文字幕高清一区| 亚洲成人av资源| 国产乱码精品一品二品| 在线视频欧美区| 久久午夜羞羞影院免费观看| 亚洲精品福利视频网站| 麻豆精品蜜桃视频网站| 成人国产免费视频| 日韩一区和二区| 亚洲精品五月天| 国产一级精品在线| 欧美日韩大陆一区二区| 国产精品传媒在线| 免费高清视频精品| 欧洲人成人精品| 日本一区二区久久| 日韩成人av影视| 91老师国产黑色丝袜在线| 欧美一卡二卡三卡四卡| 亚洲精品乱码久久久久| 国产精品69久久久久水密桃| 欧美精品丝袜久久久中文字幕| 亚洲欧洲av另类| 国产一区二区福利| 日韩丝袜情趣美女图片| 亚洲精选视频在线| 成人午夜视频福利| 久久先锋资源网| 老司机免费视频一区二区| 欧美一a一片一级一片| 一色屋精品亚洲香蕉网站| 国产精品一区二区久久精品爱涩| 欧美日韩aaaaaa| 一区二区成人在线| 91首页免费视频| 亚洲视频免费看| 成人av电影免费在线播放| 国产欧美一区二区精品仙草咪| 久久99精品国产麻豆不卡| 精品视频123区在线观看| 亚洲欧美国产毛片在线| 成人激情校园春色| 久久精品水蜜桃av综合天堂| 经典三级一区二区| 日韩片之四级片| 日本最新不卡在线| 91精品国产福利在线观看| 亚洲一区二区三区国产| 欧美性感一类影片在线播放| 亚洲视频在线一区二区| 99免费精品在线| 亚洲欧美怡红院| 91在线一区二区三区| 亚洲精选免费视频| 在线免费观看视频一区| 一区二区三区在线视频观看| 在线观看日韩av先锋影音电影院| 成人动漫一区二区在线| 亚洲综合网站在线观看| 欧美三级视频在线播放| 欧美色综合网站| 欧美唯美清纯偷拍| 东方aⅴ免费观看久久av| 美女在线视频一区| 亚洲一区二区影院| 一区二区三区波多野结衣在线观看| 欧美久久久久久久久久| 国产91精品精华液一区二区三区| 最新国产成人在线观看| 91精品国模一区二区三区| 成人不卡免费av| 蜜臀av性久久久久蜜臀aⅴ四虎 | 91精品国产一区二区三区| 一区二区三区高清| 亚洲欧洲性图库| 亚洲精品一区二区在线观看| 日韩一级二级三级精品视频| 高清国产一区二区| 久久精品国产免费| 亚洲国产精品天堂| 久久人人超碰精品| 精品视频在线免费看| 亚洲一区二区三区四区不卡| 久久久久九九视频| 精品国产91九色蝌蚪| 99精品欧美一区二区蜜桃免费| 另类小说视频一区二区| 日本不卡视频在线|