-
-
Save titouanc/6230312 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GLOBAL fonction | |
fonction: | |
mov EAX, [ESP+4] ;EAX = adresse de M | |
mov EDX, [EAX] ;EDX = adresse de la première ligne de M | |
mov CL, [EDX] ; CL = valeur de la première case de la première ligne de M | |
mov CL, [EDX+1] ; CL = valeur de la deuxième case de la première ligne de M | |
mov EDX, [EAX+4] ;EDX = adresse de la deuxième ligne de M | |
mov CL, [EDX] ; CL = valeur de la première case de la deuxième ligne de M | |
mov CL, [EDX+1] ; CL = valeur de la deuxième case de la deuxième ligne de M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern "C" void fonction(char **img, int m, int n); | |
char **M = new char *[m]; | |
for (int i=0;i<m;i++) | |
{ | |
M[i] = new char [n]; | |
} | |
fonction(M, m, n); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment