
sys a[100]
sys b

indexbase 0

a[0]=0x32210
a[1]=0x32211
a[2]=0x32212


lea esi,a ' same as lea esi,[a]
lodsb

'print hex al '10

def offs 4
addr esi,a
add  esi,offs
lodsb

'print hex al '11

mov ecx,3
addr esi,a
addr edi,a
add edi,40
(
 lods
 stos
 dec ecx
 jnz repeat
)

'print hex a[11] '32211

mov ecx,3
mov eax,0x12345678
addr edi,a
add edi,80
rep stos

print hex a[22] '12345678

