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

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

?? xmdstub.s

?? ucos2在macroblaze上的移植代碼
?? S
?? 第 1 頁 / 共 2 頁
字號:
	/*--------------------------------------------------*/
        /*	XMD_stub version 1.0                        */
	/*      MicroBlaze                                  */
	/*      (c) Xilinx 2001                             */
	/*      Author: G鰎an Bilski                        */
	/*      Created:  11 Juli 2001	                    */
	/*      Modified: 20 Sept 2001                      */	
	/*	Modified: 08 Nov  2001                      */
	/*	Modified: 12 Mar  2002 (jece & navanee)     */	
	/*--------------------------------------------------*/
	.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, 2

	/*--------------------------------------------------*/
	/* MicroBlaze jump table                            */
        /* 0x0  - Reset address                             */	
	/* 0x8  - Exception address                         */
        /* 0x10 - Interrupt address                         */
        /* 0x18 - Break signal address (short branch)       */
	/* 0x1c - Breakpoint address (short branch)         */	
        /* 0x20 - Program Exit(crt1.s) (short branch)       */
	/*--------------------------------------------------*/
		
	brki r16, StartUp_Entry
	nop
	nop
	nop	
	nop
	nop
	bri Brk_Signal_Entry
	bri Debug_Entry
	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 = SingleStep                                */
	/* - 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


	/*--------------------------------------------------*/
	/* 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


	/*--------------------------------------------------*/	
	/* 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


	/*--------------------------------------------------*/	
	/* 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   */
	/*--------------------------------------------------*/
SingleStep:
	brlid r15, Get_All_Registers
	nop
	rtsd r16, 0
	lwi r15,r0,register_dump+15*4

	/*--------------------------------------------------*/	
	/* When Processor resets                            */
	/*   - save all registers to the register_dump      */
	/*   - send 0x3 ('Processor reset') to host         */
	/*   - Jump to the main command entry code          */
	/*--------------------------------------------------*/	
	
StartUp_Entry:
	swi r15,r0,register_dump+60
	brid Dump_All_Registers
	ori r15,r0,ProcReset_signal
	/* Control goes to SendStatus from DumpAllRegisters */
	
	
	/*--------------------------------------------------*/	
	/* Program End entry                                */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人妖av一区二区| 日韩欧美一级二级三级久久久| 久久99精品国产.久久久久| 亚洲一二三四在线观看| 一区二区三区视频在线观看| 亚洲精品国产无天堂网2021| 一区二区高清免费观看影视大全| 亚洲女同ⅹxx女同tv| 亚洲美腿欧美偷拍| 亚洲高清视频在线| 久久超碰97中文字幕| 国产一区二区看久久| 成人综合激情网| 色综合天天做天天爱| 欧美日韩国产综合视频在线观看 | 色欧美片视频在线观看| 欧美性色欧美a在线播放| 91精品在线观看入口| 26uuu另类欧美亚洲曰本| 国产性天天综合网| 中文字幕av不卡| 亚洲成av人片| 国产综合成人久久大片91| 国产a级毛片一区| 91国偷自产一区二区开放时间 | 欧美日韩中文字幕一区| 欧美一级高清大全免费观看| 久久久久久久久久久黄色| 国产精品第13页| 免费成人在线视频观看| 粉嫩aⅴ一区二区三区四区五区| 一本大道av伊人久久综合| 日韩午夜在线观看| 国产精品久久久久精k8| 日本亚洲欧美天堂免费| 成人免费视频一区二区| 88在线观看91蜜桃国自产| 国产清纯在线一区二区www| 性做久久久久久| 成人黄色av电影| 日韩一区二区在线看| 亚洲欧美一区二区三区极速播放 | 盗摄精品av一区二区三区| 日本高清不卡在线观看| 久久精品视频网| 亚洲成av人片| 一本一道综合狠狠老| 久久伊人蜜桃av一区二区| 亚洲国产视频一区| eeuss影院一区二区三区| 精品国产精品一区二区夜夜嗨| 亚洲欧美日韩久久精品| 国产69精品一区二区亚洲孕妇| 日韩一区二区三区av| 亚洲第一电影网| 色综合久久九月婷婷色综合| 欧美国产日本视频| 国产综合色精品一区二区三区| 9191久久久久久久久久久| 亚洲激情网站免费观看| www.亚洲免费av| 国产精品理论片在线观看| 国产综合色在线| 337p粉嫩大胆色噜噜噜噜亚洲| 日韩国产欧美在线播放| 精品视频在线免费看| 亚洲激情六月丁香| 色播五月激情综合网| 亚洲精品免费在线观看| 成人av午夜电影| 亚洲人吸女人奶水| 91最新地址在线播放| 亚洲人成小说网站色在线 | 欧美系列日韩一区| 亚洲色图19p| 日本电影欧美片| 一区二区三区欧美亚洲| 在线免费观看日本一区| 一区二区三区精品| 欧美精品1区2区| 美女视频黄免费的久久| 亚洲精品一区二区三区香蕉| 99久久婷婷国产| 夜夜夜精品看看| 欧美一区二区三区视频免费| 蜜臀av一区二区在线观看| 精品国产亚洲在线| 成人高清视频免费观看| 亚洲视频一区在线| 欧美日韩激情在线| 久久99久久精品| 国产精品福利影院| 欧美日韩一区国产| 国内精品自线一区二区三区视频| 国产亚洲综合av| 97久久久精品综合88久久| 亚洲国产精品一区二区www在线 | 欧美极品另类videosde| 色爱区综合激月婷婷| 日本vs亚洲vs韩国一区三区二区 | 91精品国产色综合久久ai换脸| 免费av成人在线| 国产精品情趣视频| 欧美午夜在线观看| 在线亚洲高清视频| 韩国精品一区二区| 中文字幕日韩av资源站| 日韩亚洲欧美高清| 色偷偷久久人人79超碰人人澡| 日本免费新一区视频| 中文字幕欧美一| 日韩欧美在线影院| 色婷婷精品久久二区二区蜜臂av| 麻豆精品在线观看| 亚洲色图制服丝袜| 久久无码av三级| 欧美网站一区二区| 成人免费观看视频| 热久久一区二区| 一区二区免费在线播放| 2022国产精品视频| 欧美福利一区二区| 日韩精品电影一区亚洲| 国产精品美女视频| 欧美大片一区二区| 色av综合在线| 成人av网站在线| 国产成人午夜电影网| 日本不卡1234视频| 亚洲va中文字幕| 亚洲天堂a在线| 国产日本欧洲亚洲| 欧美刺激脚交jootjob| 色综合久久久久综合| 成人av电影在线观看| 国产精品99久久久久久久vr| 综合在线观看色| 136国产福利精品导航| 欧美国产乱子伦 | 欧美精品一卡两卡| 成人黄色一级视频| 麻豆精品视频在线观看| 懂色av噜噜一区二区三区av| 卡一卡二国产精品| 久久精品国产99| 久久99精品久久久久久| 日韩**一区毛片| 美腿丝袜亚洲一区| 亚洲午夜精品网| 亚洲国产日韩一级| 亚洲一区二区三区在线播放 | 欧美日韩成人综合在线一区二区| 91视频国产观看| 成人18精品视频| 高清成人在线观看| 成人av在线一区二区三区| 福利电影一区二区三区| 久草在线在线精品观看| 久久国产成人午夜av影院| 婷婷综合五月天| 日韩av中文在线观看| 亚洲国产婷婷综合在线精品| 亚洲一级电影视频| 偷拍亚洲欧洲综合| 亚洲精品免费在线播放| 亚洲精品伦理在线| 日韩激情av在线| 免费不卡在线观看| 国产mv日韩mv欧美| 99视频有精品| 欧美日韩专区在线| 2020国产精品久久精品美国| 国产精品天天摸av网| 国产日韩欧美a| 亚洲精品国产a| 国产成人8x视频一区二区| 99久久免费国产| 欧美丰满美乳xxx高潮www| 精品少妇一区二区三区在线视频 | 狠狠色伊人亚洲综合成人| 成人午夜精品在线| 欧美午夜在线观看| 精品国产伦一区二区三区观看体验| 国产亚洲精品中文字幕| 亚洲国产美女搞黄色| 国产久卡久卡久卡久卡视频精品| 99国产精品国产精品毛片| 欧美亚洲日本国产| 精品国产乱码久久久久久闺蜜| 一区免费观看视频| 麻豆91免费观看| 91免费在线看| 久久久噜噜噜久久人人看| 亚洲一区二区av电影| 国产成人av电影在线| 91精品视频网| 亚洲女同一区二区| 国产大片一区二区| 欧美一区二区三区视频在线| 亚洲天天做日日做天天谢日日欢 |