Home > other >  A very old assembly program compilation problems now only compile comment out a few words to success
A very old assembly program compilation problems now only compile comment out a few words to success

Time:10-11

XSY4211:
LCALL QS
PUSH DPL
PUSH DPH
MOV DPTR, # 1 ffeh
MOVX A, @ DPTR
MOV R0, A
MOV DPTR, # LA423;
LCALL DZDQ
LCALL IBTDXS; X
POP DPH
POP DPL
LCALL QS
PUSH DPL
PUSH DPH
INC R2
INC R2

PUSH R2
PUSH R3
PUSH 11 h
PUSH 10 h


LCALL ERSHZH

POP R3
POP R2
POP 10 h
POP 11 h


The CLR.bz2
LCALL XSPROG
POP DPH
POP DPL

INC R2
INC R2
INC R2
INC R2

LCALL QS
PUSH DPL
PUSH DPH
INC R2
INC R2
LCALL IBTDXS
POP DPH
POP DPL
LCALL QS
PUSH DPL
PUSH DPH
INC R2
INC R2
PUSH 11 h
PUSH 10 h

LCALL ERSHZH
POP 10 h
POP 11 h

The CLR.bz2
LCALL XSPROG;


MOV DPTR, # 1 ffeh
MOVX A, @ DPTR
INC., A
INC., A
MOVX @ DPTR, A
POP DPH
POP DPL
CJNE A, # 14 h, XSY4211
; CJNE A, # 0 ch, XSY421;

MOV PAGEDY, # 11 h; 11==& gt;
;


RET

CodePudding user response:

Only the PUSH R2 and R3 and POP R2 and R3 can compile a few words of commented

CodePudding user response:

Instruction, certainly can't literally commented out ah, now that is very old program, try the same assembly software, even if is the new, see if there are any compatible with original option; Not really, in view of the error message again to amend the said,

CodePudding user response:

51 assembly is this? 51 push/pop instructions only supports direct addressing, cannot use of general-purpose registers, want to use these registers the memory mapping address
  • Related