i can't figure out the problem. it shows "Unknown Label - DELAY" in edsim51
Org 00h
Main:
Mov A, #0FEh
Mov P1, A
Acall Delay
Mov A, #0FFh
Mov P1, A
Acall Delay
Djnz R1, Main ; Repeat the code until R1 becomes zero
End
i can't figure out the problem
You do not provide the subroutine
Delay, and so the assembler/linker cannot resolve the label to an address.The solution is to provide the subroutine, as a separate source code module, or in the same source.