You are not logged in.
Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
powerslide
Unregistered
aber unser dummer prof muss wieder alles verkomplizieren.. is doch alles trivial!|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
register indirect with index long int f[100]; /* f hat die adresse 1246 */ register long int *p; /* p liegt im register %ebx */ register long int i; /* i liegt im register %ecx */ p = &f[0]; p[i] = 50; f[1] = p[i]; ergibt compiliert (angeblich) : movl $1246 , %ebx /*okay ich speichere die basisadresse in %ebx*/ movl $50 , (%ebx, %ecx, 4) /* jezz schieb ich die zahl 50 irgendwohin ohne %ecx jemals definiert zu haben */ movl (%ebx, %ecx, 4) , 1250 /* oh ganz toll und jezz schieb ich die 50 an meine arrayposition f[1] nachdem ich mir die absolute speicheradresse selbst ausgedacht habe? krampf! */ |
Quoted from "Chewy@Aquasphere"
vorsichtig funkie.... sonst siehste in der nächsten runde bf in stalingrad das spielfeld nur als spector vor lauter respawnen.... ;D ;D ;D

:
;D
-