flat assembler
Message board for the users of flat assembler.
Index
> Main > @@@ FASM vs DJASM & MASM @@@ @F @B |
Author |
|
sleepsleep 09 Dec 2006, 23:46
@@: (point 1)
mov eax,5 cmp eax,[some address] je @f =====> if equal, would jump to (point 2) jmp @b =====> jump to (point 1) @@: (point 2) cmp edx,[some address] je @b ======> if equal, jump to (point 2) hoep you get it |
|||
09 Dec 2006, 23:46 |
|
DOS386 10 Dec 2006, 15:34
Quote:
OK, The catch is that same label occurs many times. My questions were: - Does FASM support such @@-labels ? - If YES, what is the exact syntax ? - If NO, what is the preferred way to convert them ? Seems that with FASM I found a very good assembler but it suffers from an "external bug": the amount of sample and open source code for FASM is VERY limited, >99% of code available is for other assemblers (MASM , NASM, DJASM, Watcom ASM (PRAGMA's ...) - are there some infos how to convert or utils to do/simplify this ? _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
10 Dec 2006, 15:34 |
|
RedGhost 10 Dec 2006, 15:54
I suggest reading the FASM documentation, which contains this info, which sleepsleep has already given you but I will try and explain it more thoroughly.
@@: is an "anonymous" label, you can have as many as you desire. @b is the first preceeding anonymous label, @f is the first proceeding anonymous label. "b" is for backwards, "f" is for forwards. Code: jmp @f ; jumps to "1" @@: ; "1" jmp @b ; jumps to "1" @@: ; "2" jmp @b ; jumps to "2" From the FASM documentation which comes with FASM -> Quote:
_________________ redghost.ca |
|||
10 Dec 2006, 15:54 |
|
DOS386 10 Dec 2006, 16:05
Quote:
OK, this is always a good hint - could you please reveal what docu (online/download) and what chapter ? Quote:
Thanks. This means, that: - FASM supports this (although NOT used in examples/own source) - Syntax is same as in MASM ? _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
10 Dec 2006, 16:05 |
|
rugxulo 10 Dec 2006, 21:13
NTOSKRNL_VXE wrote:
What OSes and output formats do you intend to use? e.g., WinXP 64-bit, PE64? DOS, .COM? DOS, COFF (link w/ DJGPP -> .EXE)? But anyways, here's a list of some things written in FASM just from this forum alone (not quite as limited as you said): uFMOD, PROE, FASMLIB, Snake, FRESH, FASMD(PRE), FASMW, PARA512, relsoft's demos, Grenhald's demos, DexOS, Menuet-32 & -64, FDBG, FASMARM, rc-converter, Stega, LDE, md5prt, httpd, AsmRegEx, Mini Sudoku, two other sudoku solvers, Black Box, Alarm, Procb, Shoolib, Reva, Retroforth, B0, macgub's demos, etc. NASM should be the easiest of any assembler to port to FASM. MASM is only used a lot in Win32 (thanks to its EULA), and even then probably only because of its "macro power" (ugh). I haven't seen anyone use DJASM or Watcom ASM except their own authors (and DJASM isn't even a full assembler, apparently lacks many instructions, just a half-job to generate the 16-bit stub for DJGPP progs). Last edited by rugxulo on 15 Dec 2006, 21:00; edited 1 time in total |
|||
10 Dec 2006, 21:13 |
|
DOS386 10 Dec 2006, 22:03
Quote:
YES it does. I just was confused by lack of this syntax in the FASM code I've seen so far so missed it. _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
10 Dec 2006, 22:03 |
|
DOS386 10 Dec 2006, 22:21
Quote: Examples I would need: Since the FASMD was already mentioned here - it uses various schemes of accessing low DOS memory in many places. Or do you mean something else? As for writing stubs and other such things, perhaps the old sources of my HDOS extender might be interesting for you (HDOS was mentioned here: http://board.flatassembler.net/topic.php?t=4919 and also in my presentation about fasm's history on our first meeting in Kraków). Recently I recovered some of those source from a floppy I thought to be broken completely (but fortunately it was broken only partially), I will see if I can put them into shape that I wouldn't be too ashamed to show here. _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
10 Dec 2006, 22:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.