flat assembler
Message board for the users of flat assembler.
Index
> Main > Is FASM universal? |
Author |
|
special-U 26 Jul 2018, 13:27
Hi.
FASM supports all CPUs or just a few? I haven't found a list of them. |
|||
26 Jul 2018, 13:27 |
|
Furs 26 Jul 2018, 14:23
If you mean x86 CPUs, then yes, it should support them all.
|
|||
26 Jul 2018, 14:23 |
|
DimonSoft 26 Jul 2018, 14:45
Actually a good assembler might support any CPU including those that are yet to be invented. db directive is the key.
|
|||
26 Jul 2018, 14:45 |
|
special-U 27 Jul 2018, 02:25
DimonSoft
But whenever I read an assembly manual I only find it for a specific CPU, you are telling me that FASM supports everything thanks to the db? ...what is the db directive? so if I study FASM my software will work with any PC? |
|||
27 Jul 2018, 02:25 |
|
DimonSoft 27 Jul 2018, 09:42
special-U wrote: DimonSoft FASM is able to generate any sequence of bytes (and any other decent assembler as well). If this sequence of bytes happens to be a valid executable for particular platform, it will run on that platform. If two or more platforms share the same ISA, ABI, API and executable format, such an executable will run on all of them. “Assembler supports this and that platforms” usually means that this particular assembler has some stuff out-of-the-box that makes writing software for particular platform easier, i.e. supports generation of machine code for certain instructions wihout the need to specify it byte-by-byte. You might want to take a look at FASMg project: while not yet convenient enough for developing large projects it shows the idea clearly. |
|||
27 Jul 2018, 09:42 |
|
special-U 27 Jul 2018, 15:53
DimonSoft
Ok... what tools and books do you recommend to get me started? is there a visual course? |
|||
27 Jul 2018, 15:53 |
|
ProMiNick 27 Jul 2018, 18:18
special-U
I have a contrquestion; What platform you target for? Do you program for that platform previously? (In HLL or in other assembler) Do you know format of executable for target OS on that platform? Do you readed programer manual about that architecture? |
|||
27 Jul 2018, 18:18 |
|
special-U 28 Jul 2018, 03:59
ProMiNick
What platform you target for? If by platform you mean the OS, my intention is to make it work on Linux and Windows. If you're referring to the CPU, then Intel and AMD Do you program for that platform previously? (In HLL or in other assembler) No, in assembler no, only in high level language such as Python Do you know format of executable for target OS on that platform? Windows = .exe Linux = .deb (only to this system) Do you readed programer manual about that architecture? That's another one of my doubts I don't know how to get. |
|||
28 Jul 2018, 03:59 |
|
Ali.Z 28 Jul 2018, 05:40
intel software developer manual, amd architecture programmer manual. (just search for these two)
fasm can make .exe (format pe console 4.0) or 3.1 or higher, fasm can make any PLAIN BINARY FILE. (.deb is debian package, an archive that can be built from your normal console i.e.command line) _________________ Asm For Wise Humans |
|||
28 Jul 2018, 05:40 |
|
special-U 28 Jul 2018, 11:01
Ali.A
intel software developer manual, amd architecture programmer manual All right, could you give me an advance on what I'll learn with those manuals? |
|||
28 Jul 2018, 11:01 |
|
Ali.Z 28 Jul 2018, 13:19
special-U wrote: But whenever I read an assembly manual I only find it for a specific CPU maybe you meant specific OS (or even syntax), because both intel and amd have same instruction sets and registers. (including syntax) special-U wrote:
if you really want manufacturer specific manual then read intel and amd manuals. _________________ Asm For Wise Humans |
|||
28 Jul 2018, 13:19 |
|
special-U 28 Jul 2018, 15:06
Ali.A
Very good links, but without knowing anything about Assembler I should start studying with those manuals? maybe you meant specific OS (or even syntax), because both intel and amd have same instruction sets and registers. (including syntax) I was curious, the graphic cards, routers, etc.... have Assembler? can be learned separately? |
|||
28 Jul 2018, 15:06 |
|
Ali.Z 28 Jul 2018, 18:07
special-U wrote: Very good links, but without knowing anything about Assembler I should start studying with those manuals? both intel and amd have full instruction set, but for fasm read fasm documents also read x86 calling conventions as well as winapi graphic card: you cant directly manipulate GPUs, you need a device driver. it worth noting that not all graphic cards are documented by their vendors, otherwise see nvidia cuda or opengl, directx, physix, or other gpu api's. routers: if you mean internet routers, then might not find anything related to their hardware specs. (and it requires network programming as well) _________________ Asm For Wise Humans |
|||
28 Jul 2018, 18:07 |
|
revolution 29 Jul 2018, 00:13
special-U wrote: ... routers, etc.... have Assembler? |
|||
29 Jul 2018, 00:13 |
|
special-U 29 Jul 2018, 08:39
Thank you all very much, at least I was able to settle down in the assembler area.
|
|||
29 Jul 2018, 08:39 |
|
rugxulo 11 Aug 2018, 22:33
The Download page on FASM's website says this:
Quote:
|
|||
11 Aug 2018, 22:33 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.