Array: Difference between revisions
m
→Element Access
Puppydrum64 (talk | contribs) m (→Indexing) |
Puppydrum64 (talk | contribs) m (→Element Access) |
||
Line 112:
;8086 Assembly
mov ax,[bx+di] ;load the BXth element of the array whose beginning is stored in DI, into AX.
;alternatively, load the DIth element of the array whose beginning is stored in BX, into AX.
;ARM Assembly
ldr r0,[r1,#4] ;load the 1st (zero-indexed) element of the array whose pointer to its 0th element is stored in r1, into r0.</lang>
====Encoding an Array's End====
|