Octavius12
Newbie level 2
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.
i started with
mov DPTR, #2020h
mov R0, #10h
but now I'm pretty stuck. Im new to this
Any help would be much appreciated
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.
i started with
mov DPTR, #2020h
mov R0, #10h
but now I'm pretty stuck. Im new to this
Any help would be much appreciated