SDUDIV:
MOV A,R3
ANL A, #80H
MOV 26H, A
JZ NEG32
ACALL NEG54
NEG32:
MOV A,R5
ANL A, #80H
MOV 27H, A
JZ DDUDIV
MOV A,R4
CPL A
ADD A, #01H
MOV R4, A
MOV A, R5
CPL A
ADDC A, #00H
MOV R5, A
DDUDIV:
MOV A,26H
XRL A, 27H
MOV 21H, A
ACALL DUDIV
JNB 0FH, RETURN
ACALL NEG54
RETURN:
RET
NEG54:
MOV A, R2
CPL A
ADD A, #01H
MOV R2, A
MOV A, R3
CPL A
ADDC A, #00H
MOV R3, A
RET