flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > stop compile directive |
Author |
|
Tomasz Grysztar 25 Sep 2004, 11:59
On the other hand, that would mean another reserved word.
|
|||
25 Sep 2004, 11:59 |
|
decard 25 Sep 2004, 13:02
Proably it wouldn't be last reserved word added...
|
|||
25 Sep 2004, 13:02 |
|
vid 27 Sep 2004, 19:28
yes, such thing would be really useful. Having some invalid instruction looks weird, and i have to use also "display" to describe error, and sometimes (bad choice of illegal instruction) error doesn't occur in assembly time etc. etc. Something like "break", no one gives such general name to a label.
|
|||
27 Sep 2004, 19:28 |
|
crc 27 Sep 2004, 19:45
Quote: no one gives such general name to a label. I use general names (including break) as labels sometimes. |
|||
27 Sep 2004, 19:45 |
|
S.T.A.S. 28 Sep 2004, 08:06
Why illegal opcodes?
Code: "break: compilation stopped for some reason." |
|||
28 Sep 2004, 08:06 |
|
vid 28 Sep 2004, 19:48
nice solution. will it be displayed in error message (linr that caused error)?
|
|||
28 Sep 2004, 19:48 |
|
Matrix 28 Sep 2004, 22:23
Hy kids
oh come on, be creative, you can do better than that here's an example: Code: org 256 ACFDC647836325234DCEFAB: in al,$60 dec al jnz ACFDC647836325234DCEFAB another example: Code: org 256 zdezDHeresLekCsiGaHellMicrosoftSuckGarbageFreakLABEL: in al,$60 dec al jnz zdezDHeresLekCsiGaHellMicrosoftSuckGarbageFreakLABEL this is becoming real in windos programming: Code: invoke PutD3dShadedObjectRenderedIntoSecondZBufferThenFlippedTwiceXYZTHETA , objectoffset, objecttype, renderingattributes_array_offset, SecondZbuffer_offset, SecondZbufferDepth, X_position, Y_position, Theta1, Theta2, Theta3, Flip_attribute_context_buffer_offset and lol this way you might not get reserved collitions MATRIX |
|||
28 Sep 2004, 22:23 |
|
S.T.A.S. 29 Sep 2004, 06:28
vid wrote: will it be displayed in error message (line that caused error)? I someties use symbols like ! or ? before the string - in this case it's possible to prevent the compilation breaking with the help of macros like Code: macro ?[x]{} And most important thing IMHO: sometimes it's needed do stop compilation not in the first pass, but later. It coud be done with tricky 'if' clause, but I guess this won't work with 'stop compile' directive. |
|||
29 Sep 2004, 06:28 |
|
JohnFound 29 Sep 2004, 07:29
S.T.A.S. wrote: Yes, you'll see a line number with full description in quotes (provided by you, of course). And you will see also the message: "Error: Illegal instruction" actually only the fact that FASM displays the text of the line where error occurs give you the option to use this trick. IMHO, FASM needs directive for stoping compilation and defining user error messages. My suggestion is: Code: break "user error message", "second string", ... Actually I never checked whether it is possible, but if it is, IMHO it is a must. Regards. |
|||
29 Sep 2004, 07:29 |
|
crc 29 Sep 2004, 11:08
Quote: oh come on, be creative, I try to keep names short and descriptive. Of course, being limited to letters and numbers prevents some good names, but I can live with that. I do have a tendency to use names like print, number and so on though |
|||
29 Sep 2004, 11:08 |
|
S.T.A.S. 29 Sep 2004, 13:07
JohnFound wrote: And you will see also the message: "Error: Illegal instruction" Of cource, this doesn't matter if IDE has FASM built-in Anyway, I suppose, there'll be something like 'Error: Fatal assembler directive' message Well, such (preprocessor stage) directive is common for C compilers and some other assemblers, but all of them have conditional preprocessing capabilities. In contrast to them FASM process conditional directives at assembly stage, and it is a multipass assembler. I'm just afraid, this directive will be implimented, but probably unhandy in some cases. |
|||
29 Sep 2004, 13:07 |
|
JohnFound 29 Sep 2004, 13:54
Quote: Anyway, I suppose, there'll be something like 'Error: Fatal assembler directive' message Very Happy IMHO, no. There should be: "Error:" + "whatever message you wrote in the quotes". |
|||
29 Sep 2004, 13:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.