Hello, first time post there. Im just having a little trouble writing a sub routine to be used on my 8051
All I need to do is scan an array of 16 consecutive numbers from external memory starting at a location (lets say 2020h) and returns the high byte of the maximum unsigned value on R2 and the low byte on R3.
Mov DPTR,#2020h
MOV R0, #10
MOVX A,@DPH
MOV R2, A
MOVx A,@DPL
Mov R3, A
would this do what I have described? As in scanning the array of 16 consecutive numbers from external memory starting at a location (lets say 2020h) and returns the high byte of the maximum unsigned value on R2 and the low byte on R3?