⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exp03.asm

📁 TI公司生产的C54系列DSP的IO口控制实验程序
💻 ASM
字号:
;File Name :exp03.asm
;learn how to operate the I/O ports
;get some knowledge of the rts.lib file
;in the I/O space 0x8000=>8 switches
;				  0x8001=>8 LEDs
	.mmregs
	.global	_main
	.text
_main:				
	stm		3100h,sp
	stm		1000h,ar1 
	portr	8000h,*ar1   ;读入I/O 8000H数据,将其存储到数据空间的1000H
	nop 				 ;NOP为空操作,起延时作用.
	nop

	portw	*ar1,8001h   ;将数据空间的1000H单元的数据,写出到I/O 8000H
	nop
	nop     
    b 		_main        ;程序跳转到"_MAIN"执行.
    nop
    nop    
    
    .end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -