exp03.asm
来自「TI公司生产的C54系列DSP的IO口控制实验程序」· 汇编 代码 · 共 24 行
ASM
24 行
;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 + =
减小字号Ctrl + -
显示快捷键?