flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 06 Jul 2010, 20:33
Yes, every assembler has its own syntax (although their share a lot in common most of the time, but not all!
![]() The example code you linked doesn't seems to be for an x86 processor. Are you sure you actually managed to compile it with MASM? Where did you run the binary to confirm it actually worked? |
|||
![]() |
|
Tyler 06 Jul 2010, 20:38
Some assemblers even have more than one dialect. Tasm has Masm compatibility mode and Ideal mode. Fasm is like Tasm's Ideal mode.
|
|||
![]() |
|
farresito 06 Jul 2010, 21:02
Yes, I compiled with MASM, If you want I can show you a ScreenShoot. So I dont know what to do, Im sure that i wont use any assembler for windows, thats clear.
The problem is that I bought a book of learning assembler (x86) and they recommend me MASM. So my question is if I wil have any incompatibility while learning with the book. Shall I use for learning MASM and then go to FASM so I will be able to study his syntax (the user manual dont explains assembler for beginers, i thing it only explains his syntax) Thanks a lot for your collaboration, LocoDelAssembly and Tyler! PD: Maybe the example is not written for x86 but MASM compiled it well without any problems... |
|||
![]() |
|
LocoDelAssembly 06 Jul 2010, 21:48
After searching one of the instructions I've found this: http://www.keil.com/support/man/docs/is51/is51_sjmp.htm
It is a program for the Intel 8051/MCS 51 architecture (not x86 compatible). I don't know if MASM has any support for this architecture (note that by MASM I mean the Microsoft Macro Assembler, maybe you mean something else?). If you plan to follow that book then stick to MASM while learning, I think you'll grasp the book better that way (but follow your friend's suggestion afterward! ![]() BTW, are you learning Assembly to program computers or electronic boards? |
|||
![]() |
|
farresito 06 Jul 2010, 22:13
Thanks a lot for your help!
Yep, I will code with Masm32(excuse me, when i said masm i what refered to masm32.com). Then i will go to Fasm(dont worry, i will go to fasm,it seems better) Im a very young web developer(15 yrs) and i need it because i need speed for a php big project (well i know some languages: php sql javascript css html) the assembler i think is for a library that will recive the parameters and will send to php. The other problem is i havent found anything about making a library with asm... Thanks a lot and excuse me the language. Im writting from and ipod so it is a little dificult. Tomorrow i will study better the link you gave me. Thanks a lot (are you spanish?) |
|||
![]() |
|
LocoDelAssembly 06 Jul 2010, 23:48
Quote:
No, Argentinian ![]() |
|||
![]() |
|
farresito 07 Jul 2010, 12:28
I red MASM32 Is the same that MASM, only that the first includes a IDE, and the 2th is by command.
Do you know If the code produced by NASM (http://www.nasm.us/) is fast? I prefer more code and speed that less code but a slowly exe. Thanks! |
|||
![]() |
|
revolution 07 Jul 2010, 14:37
farresito wrote: Do you know If the code produced by NASM (http://www.nasm.us/) is fast? |
|||
![]() |
|
vid 07 Jul 2010, 15:19
Quote: I red MASM32 Is the same that MASM, only that the first includes a IDE, and the 2th is by command. MASM is compiler by Microsoft. That is basically just one executable. MASM32 is a package of headers, .lib files, examples, tools, etc., by a dude who calls himself "Hutch". MASM32 package includes MASM compiler. |
|||
![]() |
|
farresito 07 Jul 2010, 18:24
revolution wrote:
Excuse me, I thought that as some C++ compilers, some assemlers could be better in the exe speed or in the optimization. So, if you code in 2 assemblers with the same code quality, the exe speed is the same? Thanks Revolution! PD: Have a look at: http://en.wikipedia.org/wiki/FASM. As you can read, it says is known for a lot of things. I thought code optimization could have relation with exe speed. (So when it says is know for high speed, is the same as assembling speed, not exe speed?) Thanks for the time you are taking to reply my posts. vid wrote:
Ok. Thanks, All is clear ![]() Thanks for the time you are taking on it ![]() |
|||
![]() |
|
revolution 07 Jul 2010, 18:41
farresito wrote: As you can read, it says is known for a lot of things. I thought code optimization could have relation with exe speed. (So when it says is know for high speed, is the same as assembling speed, not exe speed?) An assembler will never reorder, delete, insert, or in any way change what you write into another form. If you code this: Code: mov eax,1 mov eax 2 mov eax,4 mov eax,9 xor eax,eax inc eax dec eax |
|||
![]() |
|
farresito 07 Jul 2010, 19:32
Ok. Thanks revolution. As you may think, Im a total noob, I bought a book and Im learning it.
Thanks! |
|||
![]() |
|
farresito 08 Jul 2010, 11:43
Can I create libraries with FASM? I mean, for example, for windows DLLs? And where can I find how to? Thanks a lot! And excuse me for being so stupid^^
|
|||
![]() |
|
Tyler 08 Jul 2010, 11:57
Start a new thread for a new question. But since I'm posting I might as well point you to an answer.
![]() http://flatassembler.net/docs.php?article=manual#2.4.2 I should point out that DLLs(or libs in general) are different and more complicated than normal apps. As for being a noob: You're in good company. There seems to be a continual flow of noobs here. Some stay, some leave after few posts. I stayed. ![]() |
|||
![]() |
|
farresito 08 Jul 2010, 13:36
Tyler wrote: Start a new thread for a new question. But since I'm posting I might as well point you to an answer. Thanks a lot! And yep, I amb a total NOOB, too. The community can be happy, FASM is the most recommended assembler in ALL forums I have seen ![]() ![]() ![]() |
|||
![]() |
|
Tyler 08 Jul 2010, 13:56
Yeah, Fasm's pretty awesome. I only used it when I was starting out because it had a GUI. That was the only feature I appreciated then. Ironically enough, I only use the command line version now.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.