Where can I learn more about using Assembly inside PB?

Everything else that doesn't fall into one of the other PB categories.
Nituvious
Addict
Addict
Posts: 1033
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Where can I learn more about using Assembly inside PB?

Post by Nituvious »

I want to start learning more about assembly(I know a few things, mostly just register names etc) and how I can go about using it inside of PureBasic. Are there any resources available for it specifically in PB? If not what would you guys suggest I read from? I've looked at and downloaded FASM, but the assembly does not seem to mix well with PB. But that's because I'm dumb :mrgreen:
▓▓▓▓▓▒▒▒▒▒░░░░░
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6175
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Where can I learn more about using Assembly inside PB?

Post by blueznl »

I can only help a little here... Dunno much about assembly, but at least it shows a bit how to enter things in PureBasic...

http://www.xs4all.nl/~bluez/purebasic/p ... 10.htm#top
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
bosker
Enthusiast
Enthusiast
Posts: 105
Joined: Fri Jan 08, 2010 11:04 pm
Location: Hampshire, UK

Re: Where can I learn more about using Assembly inside PB?

Post by bosker »

FASM is a good choice because that's what PB outputs.
Try using the /COMMENTED flag when you compile a program in PB and the Purebasic.asm file
will be left in your directory to have a look at. It can be quite instructive.

There's a bunch of assembler links here...
http://www.cheapersunglasses.com/asm.html
.. yes, really. :-)
The Intel x64 and IA32 SW Developers' manual is available here...
http://www.intel.com/assets/pdf/manual/253666.pdf
There's also the Architecture manual...
http://www.intel.com/Assets/pdf/manual/253667.pdf
WARNING - these are LARGE documents.

I added some simple assembler / data stuff to another thread yesterday - see...
http://www.purebasic.fr/english/viewtop ... 13&t=44484

Good luck with your assembler adventure. :-)
Post Reply