Code: Select all
Structure Vector
x.f
y.f
z.f
EndStructure
Structure Vector
Position.f[3]
EndStructure
Cheers

Code: Select all
Structure Vector
x.f
y.f
z.f
EndStructure
Structure Vector
Position.f[3]
EndStructure
Code: Select all
Structure VECTOR
x.f
y.f
z.f
EndStructure
Code: Select all
; Structure separate
; x.f
; y.f
; z.f
; EndStructure
;
;
; Structure array
; coords.f[3]
; EndStructure
;
;
; aa.separate
; bb.array
;
; aa\x = 23
LEA ebp,[v_aa]
MOV dword [ebp],1102577664
; aa\y = 45
MOV dword [ebp+4],1110704128
; aa\z = 67
MOV dword [ebp+8],1116078080
;
; bb\coords[0] = 12
LEA ebp,[v_bb]
MOV dword [ebp],1094713344
; bb\coords[1] = 23
MOV dword [ebp+4],1102577664
; bb\coords[2] = 34
MOV dword [ebp+8],1107820544
;
; For i=0 To 2
MOV dword [v_i],0
_For1:
MOV eax,2
CMP eax,dword [v_i]
JL _Next2
; bb\coords[i] = 69
LEA ebp,[v_bb]
PUSH ebp
MOV eax,dword [v_i]
SAL eax,2
POP ebp
ADD ebp,eax
MOV dword [ebp],1116340224
; Next
_NextContinue2:
INC dword [v_i]
JMP _For1
_Next2: