All reference information about x86 assembly language

Bare metal programming in PureBasic, for experienced users
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

All reference information about x86 assembly language

Post by djes »

IdeasVacuum
Always Here
Always Here
Posts: 6380
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: All reference information about x86 assembly language

Post by IdeasVacuum »

IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
luis
Addict
Addict
Posts: 3706
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy
Contact:

Re: All reference information about x86 assembly language

Post by luis »

Both nice links thank you guys :)

The Art of Assembly Language Programming
http://flint.cs.yale.edu/cs422/doc/art-of-asm/pdf/

and this series of books, not really ASM but very useful for migrate from a high level to a low level mentality... every programmer should read these IMHO
http://nostarch.com/greatcode.htm
http://nostarch.com/greatcode2.htm

EDIT: updated the links
Last edited by luis on Wed Aug 29, 2012 11:25 am, edited 1 time in total.
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: All reference information about x86 assembly language

Post by flaith »

Another link, which helped me a lot : http://mattst88.com/programming/asmref/
“Fear is a reaction. Courage is a decision.” - WC
buddymatkona
Enthusiast
Enthusiast
Posts: 252
Joined: Mon Aug 16, 2010 4:29 am

Re: All reference information about x86 assembly language

Post by buddymatkona »

FASM documentation is not bad however I think this NASM manual is better. It contains a lot of general information like "Chapter 11: Writing 64-bit Code (Unix, Win64)" that will apply with any assembler.

http://www.nasm.us/doc/nasmdoc0.html
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6076
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: All reference information about x86 assembly language

Post by blueznl »

I've dabbled only a tiny little bit in assembly, but perhaps this can help how to access variables in PureBasic:

http://bluez.home.xs4all.nl/purebasic/p ... 10.htm#top
http://bluez.home.xs4all.nl/purebasic/p ... _purebasic
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X 32GB RAM Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
oryaaaaa
Enthusiast
Enthusiast
Posts: 780
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Re: All reference information about x86 assembly language

Post by oryaaaaa »

User avatar
oryaaaaa
Enthusiast
Enthusiast
Posts: 780
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Re: All reference information about x86 assembly language

Post by oryaaaaa »

ASM Community • The Assembly Language Resource
http://www.asmcommunity.net

A lot of Tips contributed to Board can be used to study.
User avatar
fsw
Addict
Addict
Posts: 1488
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: All reference information about x86 assembly language

Post by fsw »

Agner Fog's site.
Nituvious
Addict
Addict
Posts: 951
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: All reference information about x86 assembly language

Post by Nituvious »

Here is one for quick references: http://www.jegerlehner.ch/intel/opcode.html
▓▓▓▓▓▒▒▒▒▒░░░░░
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8178
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: All reference information about x86 assembly language

Post by netmaestro »

Good one, thanks :mrgreen:
BERESHEIT
User avatar
Crusiatus Black
Enthusiast
Enthusiast
Posts: 376
Joined: Mon May 12, 2008 1:25 pm
Location: The Netherlands
Contact:

Re: All reference information about x86 assembly language

Post by Crusiatus Black »

Beautiful posts guys, thanks!
Image
Bas Groothedde,
Imagine Programming

I live in a philosophical paradoxal randome filled with enigma's!
oldefoxx
Enthusiast
Enthusiast
Posts: 532
Joined: Fri Jul 25, 2003 11:24 pm

Re: All reference information about x86 assembly language

Post by oldefoxx »

It might be important to mention some of the reasons that we delve into assembler code on occasion.

I've worked with HotBasic for awhile, and I like it, to a point. That point is where I come up against
problems that I want to use Assembler language to address, then find out that the Assembler function
is a part of the compiler's responsibility, and that the range of acceptable Assembler code is limited
and there are discrepancies in how it translates the Assembler mnemonics into hexidecimal opcodes. HotBasic pays more attention to FPU instructions than it does to getting any and all the operations
related to strings set in place and working as they should. If you can work out the hex opcodes
yourself, you can enter them as data bytes as part of the opcode sequence, but that means two
things: (1) It's extra work of course, and (2) can you trust it to get everything else right without you
having to double-check everything?

Mind, I am not knocking HotBasic, because there is a lot to like about it. But I've about decided that it
is not for me. So in looking about with Google for something to replace it, something that can work
with just about any OS, and either 32-bit or 64-bit CPUs, and that has good assembler support, what do
I find at the top of the results? PureBasic. PureBasic, which I've had for years, but never have had
cause to get into before. Before HotBasic it was PowerBasic, but I've moved away from that as well.
For one thing. the upgrades are too expensive if you have limited income, and I am retired now.
Other reasons for leaving PowerBasic are rather personal, and I won't get into that.

But, the reason for this post is to explain what Assembler can mean to the programmer that learns to
use it. You can achieve great things in working with strings, the contents of strings, doing pattern
matching, content identification, restructuring, and a host of other activities that can also be done in
BASIC, but with BASIC, may involve repeated scans of the strings and needless duplication of the string
contents. With Assembler, you can cut to the chase and that means avoiding unnecessary stepss. I've
no reason myself to get into Floating Point computations, so having all the FPU instructions as my
disposal in Assembler does not impress me. I mean it doesn't hurt anything, but I want my string
capabilities to be first and foremost.
has-been wanna-be (You may not agree with what I say, but it will make you think).
User avatar
majikeyric
Enthusiast
Enthusiast
Posts: 166
Joined: Mon Oct 21, 2013 5:21 pm
Location: France
Contact:

Re: All reference information about x86 assembly language

Post by majikeyric »

A good link with very concise x86-32 & 64 instruction sets.

http://ref.x86asm.net/
Post Reply