正在加载图片...
0,0,0,0.0,0.0,0,0 word0,0,2,0,2,0,0,0,0,0 word2,0,2,0,0,0,0,0,0,0 d0,0,0,0,0,0,0,0,0,0 word0.0,0,0,0,0,0,0,0,0 word0,0,0,0,.0,0,0,0,0,0 word16,0,16,0,0,0,00,16,0 ,0,0,0,0,0,1,0,1, word0,0,0,0,1,0,1,0,0,0 word0,0,0,0.0,0,0,0.0,0 word0,0,0,0.0,0,0,0,0,0 word0,0,0,0,0,0,0,0,0,0 word0,0,0,0,0,0,0,0,0,0 word0.0,0,0,0,0,0,0,0,0 ord0,0,0,0,0,0,0,0,0,0 word0,0,0,0,0,0,0,0,0,0 word0,0,0,0,0,0,0,0,8,0 word64,0,64,0,0,0,0,064.0 word64,0,0,0,0,0,0,0,0,0 start STM #L.ARI 将AR1置1 STM #table. AR2 将标号 table的地址赋给 将AR3置1 PORTR PAO, ay 循环从输入口写入数据到 y所在的地址 Ld @y, B 将y地址中的值写入B 寄存器(便于查看y的值 AReA 将 table的地址写入A ADD @y, A 将 table的地址与读入的 数据相加,结果存入A 将A的低16位存入AR3.word 0,0,0,0,0,0,0,0,0,0 .word 0,0,2,0,2,0,0,0,0,0 .word 2,0,2,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 16,0,16,0,0,0,0,0,16,0 .word 16,0,0,0,0,0,1,0,1,0 .word 0,0,0,0,1,0,1,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,0,0 .word 0,0,0,0,0,0,0,0,8,0 .word 8,0,0,0,0,0,8,0,8,0 .word 64,0,64,0,0,0,0,0,64,0 .word 64,0,0,0,0,0,0,0,0,0 .text start: STM #1,AR1 ;将 AR1 置 1 STM #table,AR2 ;将标号 table 的地址赋给 ;AR2 STM #1,AR3 ;将 AR3 置 1 LOOP1: PORTR PA0,@y ;循环从输入口写入数据到 ;y 所在的地址 LD @y,B ;将 y 地址中的值写入 B ;寄存器(便于查看 y 的值) LD @AR2,A ;将 table 的地址写入 A ADD @y,A ;将 table 的地址与读入的 ;数据相加,结果存入 A STL A,@AR3 ;将 A 的低 16 位存入 AR3
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有