flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > one more bug :D |
Author |
|
edfed 20 Feb 2008, 15:32
i meet this bug with fasmw 1.62.26
when i type some quoted strings with accents, frensh keyboard specific, fasm tell me it is not end qouted... |
|||
20 Feb 2008, 15:32 |
|
revolution 20 Feb 2008, 15:35
Does it work with the double quote (")?
|
|||
20 Feb 2008, 15:35 |
|
edfed 20 Feb 2008, 15:40
no
|
|||
20 Feb 2008, 15:40 |
|
revolution 20 Feb 2008, 16:40
Notice how Tomasz uses "scas dword [edi]" instead of "add edi,4".
|
|||
20 Feb 2008, 16:40 |
|
vid 20 Feb 2008, 16:41
tomasz tries hard to keep FASM under 64KB
|
|||
20 Feb 2008, 16:41 |
|
edfed 20 Feb 2008, 23:01
the problem is not fasm, but the string '^ 'is problematic, it is
27 5E 00 27 so, fasm see it as a end of string... to avoid this bug, the test shall include a two char test. or al,al je missing_end_quote? ... missing_end_quote?: mov al,[esi-2] cmp al,5eh jne missing_end_quote ... |
|||
20 Feb 2008, 23:01 |
|
DOS386 20 Feb 2008, 23:11
> Notice how Tomasz uses "scas dword [edi]" instead of "add edi,4".
3 bytes -> 1 byte > tomasz tries hard to keep FASM under 64KB YES, but |
|||
20 Feb 2008, 23:11 |
|
edfed 20 Feb 2008, 23:30
this is size optimisation for sure, but it will change the state of eax, so, to use with caution...
tomasz is not a beginner, he don't have to write the algo with basic inst, remember, he is the autor of the program you use for code... so .. thanks. |
|||
20 Feb 2008, 23:30 |
|
revolution 20 Feb 2008, 23:39
edfed wrote: it will change the state of eax, ... |
|||
20 Feb 2008, 23:39 |
|
revolution 20 Feb 2008, 23:43
edfed wrote: the problem is not fasm, but the string '^ 'is problematic, it is |
|||
20 Feb 2008, 23:43 |
|
edfed 20 Feb 2008, 23:53
but it can make problems in case of effective end of file before the quote closer.
|
|||
20 Feb 2008, 23:53 |
|
revolution 21 Feb 2008, 00:01
Just try and see what happens. How does fasm recognise the end of file?
Code: mov byte [edx],1Ah |
|||
21 Feb 2008, 00:01 |
|
edfed 21 Feb 2008, 00:19
the best is to never try to quote strings with '^ ' obtained when typing a ^ accent, the key just after the p on azerty kb, and type a key that don't accept the accent, like p, k, b, t, f, w, , etc...
|
|||
21 Feb 2008, 00:19 |
|
shoorick 21 Feb 2008, 06:20
try to use another editor/ide, which does not insert esc sequences
|
|||
21 Feb 2008, 06:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.