下面就是我做错了板子的补救程序,
将8位数据高低位掉头互换
NAME SUBFUNCTION_ASM
CODESEG SEGMENT CODE
PUBLIC _Revdata
RSEG CODESEG
_Revdata:
PUSH ACC
CLR C
MOV A,R7
MOV R7,#0
MOV R1,#08H
LOOP1: RRC A
JNC GO
INC R7
G MOV R0,A
DEC R1
CJNE R1,#0,DOIT
SJMP BACK
DOIT: MOV A,R7
RL A
MOV R7,A
MOV A,R0
CLR C
SJMP LOOP1
BACK: POP ACC
RET
END