flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2, 3, 4 |
Following person should become moderator | ||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||
Total Votes : 17 |
Author |
|
f0dder
Writing C++ with fasm would be pointless, and I dunno if the macro system is powerful enough to handle it, anyway. Use the right tool for the job
![]() |
|||
![]() |
|
revolution
"inc eax" ---> "reg_eax++;" // Easy so far
"imul edx,ecx" ---> "reg_edx *= reg_ecx;" // Still easy "add ebx,esi" ---> "reg_ebx += reg_esi;" // Yep, still no problem. "adc edi,eax" ---> "????" // This could be tricky "jc overflow" ---> "????" // now we are in trouble |
|||
![]() |
|
edfed
i wonder how to make it??? all C,C++ dev have problems with type conversion and addressing...
mov [esi*9+10],eax movzx eax,byte[ebx] stc cli |
|||
![]() |
|
revolution
Just make the macro to simply wrap all instructions within "_asm" blocks. Problem solved.
|
|||
![]() |
|
f0dder
...or program the way the language is designed to. C/C++ doesn't have a concept of RFLAGS, so you're obviously going to go around those problems in a different way
![]() |
|||
![]() |
|
edfed
now, i'll speak seriouslly about C/C++ stuff.
all language have it's own utility.( i don't speak about qbasic or VB) for C/C++ the principle is simple: no need to know the internal of the machine to code. and C/C++ compiler is one of the first thing they make when they build a new µP because it's reliable. then, to test the capability of the new µP, they can compile any C/C++ file and they will have an overview of the power of teh new µP. asm have its utility to code the C/C++ compiler. but only for the devellopment of the related C/C++ library. then, C/C++ is the language over asm. able to make asm enclosed between -asm tags, and the best with C/C++ is that you can developp a code, and compile it for all existing platforms transparentlly, no need to know the exact label for getmodulehandle or things like that. then, C/C++ are more productive in the way they are closer to the human language than ASSEMBLY. the language inventors seek a way to program µP as easy as speech. do you know the LOLCODE? this one is based on SMS language, it's a big shit but a teenager can code for without learning any C/C++/ASM. |
|||
![]() |
|
LocoDelAssembly
Voted revolution, he (or she? in what that thread of the sperm function ended after all?), apart that he/she is very active at the moment, he/she is also of "good quality". For what I have seen, seems that vid was off-line at the same time I was so more moderators could be a good idea and I think revolution is a good addition.
|
|||
![]() |
|
Goto page Previous 1, 2, 3, 4 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.