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

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

?? xmdstub.s

?? <基于fpga的嵌入式設計上的光盤的第四章第二個實驗
?? 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一区二区三区免费野_久草精品视频
国产高清久久久| 一卡二卡欧美日韩| 男人的天堂亚洲一区| 欧洲色大大久久| 亚洲激情图片小说视频| 一本一道久久a久久精品| 欧美国产综合一区二区| 国产成人av电影在线观看| 欧美精品一区二区三区很污很色的 | 亚洲男女一区二区三区| 懂色av一区二区三区蜜臀 | 亚洲国产精品av| 国产福利一区二区| 欧美精品一区二区三区蜜桃| 成人国产视频在线观看| 亚洲视频一区二区免费在线观看 | 亚洲国产精品一区二区www在线| 色欧美乱欧美15图片| 一区二区免费看| 欧美不卡在线视频| 国产精品91xxx| 最新中文字幕一区二区三区 | 亚洲视频你懂的| 91免费版在线| 亚洲国产综合色| 制服丝袜亚洲精品中文字幕| 另类专区欧美蜜桃臀第一页| 国产精品色噜噜| 色8久久人人97超碰香蕉987| 一区二区三区.www| 精品国产91久久久久久久妲己| 国产成人在线视频网址| 国产精品国产三级国产aⅴ入口| 欧美日韩第一区日日骚| 九九视频精品免费| 久久超碰97中文字幕| 国产精品毛片高清在线完整版| 色综合一区二区三区| 亚洲第一会所有码转帖| 久久精品一区八戒影视| 99久久久国产精品| 日韩精品一区第一页| 国产精品美女一区二区在线观看| 欧美视频一区二区三区在线观看 | 91精品国产91久久久久久一区二区| 午夜激情久久久| 久久亚洲精精品中文字幕早川悠里 | 91精品久久久久久久99蜜桃| 不卡影院免费观看| 蜜桃视频在线观看一区| 欧美高清在线精品一区| 日韩精品一区二区三区视频| 成人在线视频一区| 视频一区国产视频| 一区二区三区蜜桃网| 2014亚洲片线观看视频免费| 日本韩国欧美在线| 91一区一区三区| 精品亚洲成a人在线观看| 一区二区三区在线视频免费观看| 欧美区在线观看| proumb性欧美在线观看| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲综合色丁香婷婷六月图片| 久久久亚洲精华液精华液精华液| 欧美在线免费视屏| 成人18精品视频| 国内精品国产成人国产三级粉色| 亚洲国产成人私人影院tom | 在线观看欧美精品| 国产精品中文字幕日韩精品| 日韩国产欧美在线视频| 亚洲人成精品久久久久| 久久午夜电影网| 555www色欧美视频| 懂色av中文字幕一区二区三区| 日本午夜精品一区二区三区电影| 亚洲女爱视频在线| 国产午夜久久久久| 国产日韩欧美高清在线| 精品少妇一区二区三区视频免付费| 色综合网站在线| 成人国产精品免费| 99精品国产91久久久久久| 国产精品一区久久久久| 日本伊人午夜精品| 久久电影网电视剧免费观看| 自拍偷拍亚洲激情| 一区二区三区精品| 日韩精品每日更新| 肉肉av福利一精品导航| 亚洲成人av一区二区三区| 国产精品久久久久久久久图文区| 亚洲欧美在线aaa| 国产日本欧洲亚洲| 中文字幕av一区二区三区| 欧美日本在线一区| 欧美日韩一区久久| 91精品国产高清一区二区三区 | 成人av在线资源网| 国产成人一区二区精品非洲| 国产精品自拍在线| 色婷婷久久久亚洲一区二区三区| 91蝌蚪porny九色| 99久久综合国产精品| 欧美天天综合网| 91精品国产综合久久久久久久| 欧美一级黄色片| 国产亚洲成年网址在线观看| 国产欧美日韩精品一区| 天天做天天摸天天爽国产一区| 婷婷中文字幕一区三区| 丝袜国产日韩另类美女| 日韩中文字幕1| 懂色av中文字幕一区二区三区| 色综合一个色综合亚洲| 91国偷自产一区二区使用方法| 国产91色综合久久免费分享| 国产一区999| 成人免费精品视频| 91免费小视频| 欧美三级电影一区| 日韩视频一区二区在线观看| 久久亚洲一级片| 亚洲你懂的在线视频| 天天色天天操综合| 国产在线精品一区二区三区不卡| 久久激情五月激情| 蜜桃一区二区三区在线| 成人综合在线观看| 91福利视频网站| 欧美不卡一二三| 日韩一区欧美小说| 午夜影视日本亚洲欧洲精品| 国产精品综合二区| 成人性生交大片免费看在线播放| 欧美日韩一级黄| 99re8在线精品视频免费播放| 91捆绑美女网站| 日韩视频一区二区三区在线播放 | 国产大片一区二区| 在线免费观看日韩欧美| 亚洲成人1区2区| 555夜色666亚洲国产免| 国产综合久久久久久鬼色| 国产亚洲女人久久久久毛片| 国产大陆亚洲精品国产| 亚洲综合一区二区精品导航| 欧美精品久久久久久久久老牛影院| 美女一区二区久久| 国产精品久久久一区麻豆最新章节| 成人国产精品视频| 欧美aⅴ一区二区三区视频| 久久久久久久久久久99999| 色婷婷av一区| 国产一区二区三区免费看 | 成人精品gif动图一区| 亚洲精品乱码久久久久久黑人| 欧美电影免费观看完整版| 欧美日韩一卡二卡三卡| 激情文学综合网| 午夜欧美大尺度福利影院在线看| 久久一夜天堂av一区二区三区| 一本色道久久加勒比精品| 国产美女娇喘av呻吟久久| 亚洲chinese男男1069| 一区二区三区自拍| 中文久久乱码一区二区| 精品国产乱码久久久久久浪潮| 欧美专区日韩专区| 91麻豆免费看| 欧美在线短视频| 在线视频国内一区二区| 色乱码一区二区三区88| 99久久99久久综合| av电影在线观看一区| 不卡区在线中文字幕| 成人综合婷婷国产精品久久蜜臀| 国产精品一区二区久激情瑜伽| 激情图片小说一区| 国产高清成人在线| 欧美中文字幕一二三区视频| 精品捆绑美女sm三区| 午夜精品免费在线| 成人动漫一区二区三区| 日韩精品一区二区三区swag| 午夜国产精品一区| 国产成人一区二区精品非洲| 日韩精品自拍偷拍| 五月激情综合色| 97精品超碰一区二区三区| 欧美剧情片在线观看| 精品久久国产老人久久综合| 久久精品亚洲国产奇米99 | 久久精品国产网站| 99这里只有久久精品视频| 欧美日韩一区二区三区四区五区| 久久亚洲精品小早川怜子| 一区二区国产盗摄色噜噜| 国产成人精品一区二区三区四区 |