数据传送类指令测试
栈操作
org 00h
ajmp start
org 30h
start: mov sp,#10h
mov 30h,#11h
mov 31h,#22h
push 30h
push 31h
pop 30h
pop 31h
end
访问外数据存储器
org 00h
ajmp start
org 30h
start: mov dptr,#0100h
movx a,@dptr
mov dptr,#0200h
movx @dptr,a
end
访问程序存储器
org 00h
ajmp start
org 30h
start: mov dptr,#0100h
movx a,@dptr
mov dptr,#0200h
movx @dptr,a
end
分析指令运行结果
org 00h
ajmp start
org 30h
start: mov 23h,#30h
mov 12h,#34h
mov r0,#23h
mov r7,#22h
mov r1,#12h
mov a,@r0
mov 34h,@r1
mov 45h,34h
mov dptr,#6712h
mov 12h,dph
mov r0,dpl
mov a,@r0
end
文章评论(0条评论)
登录后参与讨论