Lul, wrong section.
Do a bit of googling until you find something you like, it's all about personal preference.
What is a good book to learn asm from?
Lul, wrong section.
Do a bit of googling until you find something you like, it's all about personal preference.
https://www.mpgh.net/forum/34-assembl...-language.html
x86 Assembly - Wikibooks, collection of open-content textbooks
I suggest you learn the masm syntax. Even though HLA comes with a book and everything, the HLA syntax is backwards for no apparent reason and I think that will only confuse you.
When it comes down two it the only way to learn asm is to program in it. Though I did that I also spent a lot of time learning it by reversing C++ programs. It seems to me the whole point of learning asm is to use it in your C++ code or reverse engineer the original C code, so I wouldn't start too much on asm till you've learned C++, but different people learn different ways so do what u think is best. Im just listing some options.
BEST ASM TUTS ON THE NET: http:/32assembly.online.fr/tutorials.html
Last edited by why06; 09-19-2010 at 08:20 PM.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
258456 (09-19-2010)
thanks why,
@void:
i know it's the wrong section but i posted it here because asm section is dead, lol, even though ur post didn't help me at all i will still thank you lol
/moved to assembly.
why06 (09-20-2010)
x86 assembly reference manual.
Art of Assembly
Second one has 1426 pages, that should keep you busy.
I am so confused, whenever i put my asm code in my c++ program it's not working, I want to learn the kind of asm where i can just go to my c++ program and put:
Code:_asm { ; code here }
I often use __asm to write assembly bridges to call functions in the exectuable that loads my DLL, where variables have to be explicitly passed through registers, as such:
There isn't much use for coding asm for game-hacking, unless you need bridges between the game/engine and your module and funcptr's aren't suitable.Code:static int GL_SelectTexture( int texUnit ) { __asm { mov esi, texUnit mov eax, GL_SELECTTEXTURE_ADDRESS call eax } }
Last edited by -Raz0r-; 09-28-2010 at 04:43 AM.
Languages: C, C++, x86 ASM, PHP, Lua
Razor I believe you can also use the _fastcall prefix to create a function pointer that will load available registers first, but it might be best just to go asm to be safe.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
Yeah, the values are explicitly read from registers in the .exe I've disassembled, so I can't rely on my compiler to assume the registers =p
I suppose it was an optimisation effort. ASM bridges are pretty easy to write anyway, so it's no problem. =D
Languages: C, C++, x86 ASM, PHP, Lua