flat assembler
Message board for the users of flat assembler.

Index > Feedback > Moderators needed: Mr. HELL ???

Goto page Previous  1, 2, 3, 4

Following person should become moderator
Mr. HELL, of course
17%
 17%  [ 3 ]
Madis731
17%
 17%  [ 3 ]
Xorpd!
0%
 0%  [ 0 ]
bitRAKE
17%
 17%  [ 3 ]
Other, please post
17%
 17%  [ 3 ]
NO need for moderators
29%
 29%  [ 5 ]
Total Votes : 17

Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17270
Location: In your JS exploiting you and your system
revolution
edfed wrote:
for macro addicts: a good thing can be to developp a macro file to write C/C++ with fasm...
I just noticed this. What a great idea! Shocked fasm creates C++, C++ creates MASM, MASM creates object code, linker creates binary. Razz
Post 28 Mar 2008, 00:13
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
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 Smile
Post 28 Mar 2008, 00:19
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17270
Location: In your JS exploiting you and your system
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
Post 28 Mar 2008, 00:31
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
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
Post 28 Mar 2008, 00:36
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17270
Location: In your JS exploiting you and your system
revolution
Just make the macro to simply wrap all instructions within "_asm" blocks. Problem solved.
Post 28 Mar 2008, 00:39
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
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 Smile
Post 28 Mar 2008, 00:43
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
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.
Post 28 Mar 2008, 01:20
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
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.
Post 06 Apr 2008, 01:21
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3, 4

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.