This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

array to local data for assembler routine

?DT?FormatBitSegment SEGMENT DATA OVERLAYABLE

           RSEG ?DT?FormatBitSegment

local_a:   DS  1
local_q:   DS  1
local_c:   DS  1
local_x:   DS  1
local_e:   DS  1
can I count on the linker assigning the above sequentially so that I can do
; the array is in xdata, address in dptr
mov r7,#5
mov r0,#local_a
loop: movx a,@dptr
mov @r0,a
inc dptr
inc r0
djnz r7,loop

Erik

Parents Reply Children
No data