Hi :)
Is there a way to declare char** in Assembler? I need to create a split function.
Printable View
Hi :)
Is there a way to declare char** in Assembler? I need to create a split function.
Declare? It all depends on how you interpret it.
char **ptr;
bring ptr[3][2] in al:
Or a real 2d array:Code:; bring into ebx so we can use it
mov ebx, DWORD PTR [ebp+$ptr]
; dereference: ebx = ebx[3]
mov ebx, DWORD PTR [ebx+12]
; dereference: al = ebx[2]:
mov al, BYTE PTR [ebx+2]
char ar[10][10]
Code:; create space:
sub esp, 100
; access [4][3]
mov ecx, 4
; not sure about this line
mov al, BYTE PTR [esp+ecx*10+3]