flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
vid 17 Feb 2007, 08:11
from FASMLIB internal macros:
Code: ;define macros for compilation errors __preprocess_error fix macro* __pass_error fix __undefined_opcode_blahblahblah __assembly_error fix rb -1 |
|||
![]() |
|
MCD 17 Feb 2007, 14:52
vid wrote: from FASMLIB internal macros: There should be an error directive that stops fasm from compiling your code that doesn't display anything so you can make your own error messages with display because sometimes the built-in fasm error messages just don't describe the error well to which the message applies. Also, you can't make fasm return custom error codes like this. consider this example that disallows shl with shift counts != 1 Code: macro shl A,B{ ;disallow shifts != 1 if (B eqtype 0) & (B <> 1) display "shift count not 1",0Ah shl end if } shl ax,2 the output of that is: Quote:
well, you can guess the error from that, but fasms own error messages are just confusing people here. With current fasm versions, the only workaround for that is to not use stuff that makes fasm stop with an error and simply display some messages and hope the coder sees and interprets the displayed message well, like this: Code: macro shl A,B{ ;disallow shifts != 1 if (B eqtype 0) & (B <> 1) display "shift count not 1",0Ah end if } shl ax,2 which output is: Quote:
_________________ MCD - the inevitable return of the Mad Computer Doggy -||__/ .|+-~ .|| || |
|||
![]() |
|
Tomasz Grysztar 17 Feb 2007, 15:27
For the older discussions about this, see http://board.flatassembler.net/topic.php?t=4828 (and follow the links).
As for the "push cr0" bug, it's fixed in 1.67.21. |
|||
![]() |
|
MCD 17 Feb 2007, 15:29
Tomasz Grysztar wrote: For the older discussions about this, see http://board.flatassembler.net/topic.php?t=4828 (and follow the links). |
|||
![]() |
|
vid 18 Feb 2007, 01:31
MCD:
Code: __pass_error fix 'oh shit, error happened' not clear, but works good enough :] |
|||
![]() |
|
MCD 18 Feb 2007, 03:41
Tomasz: the new versions of fasm at the download page are described as version 1.67.21, but the actual version inside is still 1.67.20.
vid wrote: MCD: sorry, but that one won't display anything to the programmer neither, it just makes fasm display its default error message. |
|||
![]() |
|
DOS386 18 Feb 2007, 04:08
Quote: new versions of fasm at the download page are described as version 1.67.21, but the actual version inside is still 1.67.20 I found 1.67.21 (DOS ![]() ![]() But other bug: FASM.EXE (Win32 console) bloated by 22 KB !!! _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug Last edited by DOS386 on 18 Feb 2007, 07:04; edited 1 time in total |
|||
![]() |
|
MCD 18 Feb 2007, 05:40
NTOSKRNL_VXE wrote:
that smells a bit like some undefined data are now in the middle of some section instead at the end. still, the version of fasm 1.67.21 is actually 1.67.20 (Linux version) |
|||
![]() |
|
vid 18 Feb 2007, 10:32
MCD: sorry, i copy pasted it wrongly in hurry. i use
Code: __pass_error 'oh shit, error happened' there, you see the instruction that caused problem displayed. Well... at least in FASMW that i use ![]() |
|||
![]() |
|
Tomasz Grysztar 18 Feb 2007, 10:36
Sorry, I had connection problems yesterday. Please try downloading now.
|
|||
![]() |
|
MCD 18 Feb 2007, 18:14
THX2A
|
|||
![]() |
|
DOS386 21 Feb 2007, 04:33
Quote: try downloading now Fixed ![]() _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.