During this time of not being able to go out to visit my favorite places, plus the 100+ degree weather for 3 months every summer, I get bored. Working on my regular projects gets to me after a while, and I want to do something fun.
I had thought of a project I have wanted to do for fun. It would probably never get to full 1.0 release mode, but I could enjoy doing it.
I want to generate a reasonably efficient Assembly code that I could use the new 64-bit assembler to create loadable code.
It has been almost 40 years since I last did any assembly code for the 80386, Vax, and CDC multi-processor machines. I wonder if anyone can send me documentation on the current assembler (GAS) or new version that I could use to be able to generate code. A description of all the commands and instructions would be great.
Thanks
Wally
Standalone use of new GAS64 assembler as backend for a different Parser
Re: Standalone use of new GAS64 assembler as backend for a different Parser
There are about 1503 instructions nowadays. The Intel doc documents them all, so best to download the Intel datasheets.
Re: Standalone use of new GAS64 assembler as backend for a different Parser
Hi wally,
For well understanding your project , where does it sit ? I omit object files and linker.
Good luck for your project.
If you want you also could help me in my gas64 project : stronger optimization. For now I just do 'peephole optimization' (thanks to Google for learning me the name) and with a pass on the asm code we could get a more optimized code.
Did you receive my email ? There is a link to an alphabetic list of these instructions then each one is well described.wallyg wrote:A description of all the commands and instructions would be great.
For well understanding your project , where does it sit ? I omit object files and linker.
Code: Select all
BAS --> fbc [lexer/parser/emitter] --> AS32 --> gas32
|
--> AS64 --> gas64
|
--> C --> gcc32/gcc64 --> gas32/gas64
If you want you also could help me in my gas64 project : stronger optimization. For now I just do 'peephole optimization' (thanks to Google for learning me the name) and with a pass on the asm code we could get a more optimized code.
Re: Standalone use of new GAS64 assembler as backend for a different Parser
See All opcodes in a handy format, attachment AllOpcodes.zipwallyg wrote:A description of all the commands and instructions would be great
Re: Standalone use of new GAS64 assembler as backend for a different Parser
Thank you for the responses.
But, I have not received any emails containing any information as of right now.
My email address is TiresRMe2001@yahoo.com. The same address for 19 years.
Wally
But, I have not received any emails containing any information as of right now.
My email address is TiresRMe2001@yahoo.com. The same address for 19 years.
Wally
Re: Standalone use of new GAS64 assembler as backend for a different Parser
I clicked on the link for AllOpcodes.zip in the RichMash forum and the file downloaded will not open in the standard Zip that is part of Windows 10. And 7Zip also indicates it in not valid.
Wally
Wally
Re: Standalone use of new GAS64 assembler as backend for a different Parser
Confirmed. AllOpcodes.zip is broken.wallyg wrote:I clicked on the link for AllOpcodes.zip in the RichMash forum and the file downloaded will not open in the standard Zip that is part of Windows 10. And 7Zip also indicates it in not valid.
Wally
Re: Standalone use of new GAS64 assembler as backend for a different Parser
Strange because we have already exchanged using this address and after checking no error of sending, maybe gone in spam.wallyg wrote:But, I have not received any emails containing any information as of right now.
The same address for 19 years.
All the files are here http://users.freebasic-portal.de/sarg/Docs_Wally.zip
And the links below.
My bible about Intel/Amd instructions :
https://www.felixcloutier.com/x86/
Calling convention windows :
https://www.gamasutra.com/view/news/171 ... ention.php
Directives when using gas :
https://ftp.gnu.org/old-gnu/Manuals/gas ... /as_7.html
Re: Standalone use of new GAS64 assembler as backend for a different Parser
robert wrote:Confirmed. AllOpcodes.zip is broken.wallyg wrote:I clicked on the link for AllOpcodes.zip in the RichMash forum and the file downloaded will not open in the standard Zip that is part of Windows 10. And 7Zip also indicates it in not valid.
Wally
There are two attachments here:All opcodes in a handy format
Attached a slightly updated version of the AllOpcodes.rtf document. You can open it in WordPad or MS Word or any other editor that understands Rich Text Format.
above the image: AllOpcodes.zip (191.75 kB - downloaded 65 times.)
below the image: AllOpcodesJpg.zip (49.7 kB, 959x372 - viewed 223 times.)
Try the upper one. The lower one is just a cheap trick to make the SMF forum software accept an attachment that can be "viewed 223 times" but actually isn't in trusty old zip format ;-)