用C51语言写一个完整的程序,实现将内部RAM地址40H和50H单元相加,保存到60H存储单元!~

麻烦帮我看下,写个编程,小弟是新手~!
2024-12-29 17:50:05
推荐回答(2个)
回答1:

#include
sfr xda=0x40;
sfr yda=0x50;
sfr rel=0x60;
main()
{
rel=xda+yda;
while(1){};
}

回答2:

MOV R0,#000H
MOV R0,#40H
MOV A,#00H
MOV A,#50H
ADD A,E0