exp03.asm

来自「程序为达盛实验箱所带」· 汇编 代码 · 共 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 0x0000=>8 switches
;				  0x0001=>8 LEDs
	.mmregs
	.global	_main
	.text
_main:
	stm		3100h,sp
	stm		1000h,ar1  ;define the address
	portr	00h,*ar1   
	nop 
	nop

	portw	*ar1,01h
	nop
	nop     
    b _main
    nop
    nop    
    
    .end

⌨️ 快捷键说明

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