flat assembler
Message board for the users of flat assembler.
Index
> Main > Bug ? mov dl, byte es:[di] - invalid .. |
Author |
|
DOS386 29 Aug 2007, 11:18
Welcome to FASM
Code: mov dl, byte es:[di] ; BUG Code: mov dl,[es:di] ; Correct (byte is unnecessary and optional) Quote: I've no idea why FASM<>TASM (coming from C ? FASM !=TASM ) Quote: TASM doesn't complain and my old Assembly Language books don't mention that this isn't x86 compatible. OLD means crap when dealing with x86 ASM syntax Quote: does FASM for DOS support something like "GROUP" and "ASSUME" NO. Useless. MUST read: http://flatassembler.net/docs.php?article=design _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
29 Aug 2007, 11:18 |
|
rugxulo 30 Aug 2007, 03:22
|
|||
30 Aug 2007, 03:22 |
|
Honk 30 Aug 2007, 09:00
Hi,
yeah, I am an oldschool TASM Coder .. but my actual project aims the usage of FASM as OpenWatcom Backend for DOS (for 4k-Dos-Intro Szene coding). And .. it worked ! 'Cause OpenWatcom links a lot of unnecessary stuff to it's executables and FASM creates such beautiful small EXEFiles, I gave it a try. The OpenWatcom Compiler & Linker created a (UPX Packed) 9 kb EXE (no extern libraries, everything stripped) - with FASM as Backend I got a 2,3 kb (UPX) File of the same source .. of course I don't use the standard libraries for my projects. So long Honk |
|||
30 Aug 2007, 09:00 |
|
rugxulo 31 Aug 2007, 04:31
Honk, in case you're using an older version (and would be willing to freely upgrade), OpenWatcom 1.7 has just been released recently.
|
|||
31 Aug 2007, 04:31 |
|
Honk 31 Aug 2007, 13:31
Hi,
rugxulo wrote: Honk, in case you're using an older version (and would be willing to freely upgrade), OpenWatcom 1.7 has just been released recently. I'm using Openwatcom 1.6 (after a lot of tests the best available C/C++ Compiler for DOS Develpment 'cause of its actuality) - I don't think that much changed in ver1.7. .. the size of created binaries is quite well, the smallest of all tested C Compilers for DOS, but not small enough for Intro Coding. If you watch the assembly file, you see a lot of functions like "__u4m", "__chp" etc. that are unnecassary or don't have any influence to the runtime (i replaced them with "retn"-instructions). And if using floats (even if not the math.lib) every C Compiler seems to link against a math runtime (_fltused) - which is discussed in different Kernel-developer threads .. I have no idea why, but if stripped, everything works still fine and you got the small executables that can be used in 4kb Intros ... So long Honk |
|||
31 Aug 2007, 13:31 |
|
rugxulo 07 Oct 2007, 03:14
Actually, no, there are (16-bit, at least) DOS C compilers that output smaller than OpenWatcom: Turbo C, Desmet C, Micro C, Dev86, Small C (depending on what you want to do, they are not all ANSI compatible). See here.
|
|||
07 Oct 2007, 03:14 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.