5
程序如下: 汇编程序
ORG 0000H LJMP MAIN ORG 0100H
MAIN:MOV DPTR,#7F03H MOV A,#90H MOVX @DPTR,A LOOP:MOV DPTR,#7F00H MOVX A,@DPTR MOV DPTR,#7F01H MOVX @DPTR,A SJMP LOOP SJMP $ END C语言程序: #include <reg51.h> #include <absacc.h> main() {
unsigned char i;
XBYTE[0x7f03]=0x90; while(1) {
i=XBYTE[0x7f00]; XBYTE[0x7f01]=i;