Can someone provide me with simple asm howto?
What are differencies between FB assembler and Intel assembler? My assembler of choice is Netwide assembler which I think is the most powerful and representative free 32-bit Intel assembler, so by its syntax I understand Intel syntax. After finding some info about AS on net I have soup in my head. Does or doesn't it support Intel notation (like netwide does for mov ax,bx) and are instruction semantics same like in Intel ore they change to at&t style -> cbtw from cbw?
Assembly
-
- Posts: 142
- Joined: May 27, 2005 6:13
Re:
(A slightly late reply because it bubbled up due to searchengine problems, but no. FPC parses both Intel and AT&T fully, and then always generates AT&T from that for GAS. This was originalyl done for pascal<->asm cooperation, but has the convenient sideeffect of not being too particular which assembler is used.jdebord wrote:FreePascal has a switch to choose between Intel and ATT syntax in in-line assembly. Since it uses AS, too, this could also be possible in FB.
If it uses AS at all. For most popular targets (Windows + ELF based targets), it writes .o's directly)