试编写一段程序,将片内ram 20h~2Fh与片内Ram30h~3Fh单元交换数据

2025-01-02 10:59:40
推荐回答(1个)
回答1:

mov r0,#20h
mov r1,#30h
mov r2,#10h
ss:
mov a,@r0
mov @r1,a
inc r0
inc r1
djnz r2,ss