flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > [sug] Underscores within numbers to improve readability Goto page Previous 1, 2 |
Author |
|
rugxulo 03 Apr 2008, 20:31
edfed wrote: i totally agree. i seek an explanation to azerty. and finally, i don't find any as well as for qwerty.. I don't use it, but you may wish to read about Dvorak. |
|||
03 Apr 2008, 20:31 |
|
vador 26 Aug 2008, 19:58
how about just writing a preprocessor for fasm sources?
|
|||
26 Aug 2008, 19:58 |
|
revolution 26 Aug 2008, 20:28
vador wrote: how about just writing a preprocessor for fasm sources? |
|||
26 Aug 2008, 20:28 |
|
edfed 18 Sep 2008, 21:50
and is it possible to make this?
where to put the modification? parser? assembler? ??? ?? Code: mov dword[si+bx],0:7c00h |
|||
18 Sep 2008, 21:50 |
|
vid 19 Sep 2008, 10:39
Using ":" is bad idea, because of segment:offset addressing. But place to put such modification is "tokenizer", (the part of code which turns ASCII line to list of tokens, before preprocessing)
|
|||
19 Sep 2008, 10:39 |
|
Tomasz Grysztar 19 Sep 2008, 10:47
No, not really. If you want to use "_" character for such purpose, as it is not a special one, you can make this change directly in the get_number routine. In fact I plan to do it for the next release.
It would also work with quotes the same way - quotes in places other than beginning of a token (where they mean the quoted text token) are not treated specially in fasm. |
|||
19 Sep 2008, 10:47 |
|
revolution 20 Dec 2008, 12:23
Tomasz Grysztar wrote: No, not really. If you want to use "_" character for such purpose, as it is not a special one, you can make this change directly in the get_number routine. In fact I plan to do it for the next release. Code: dq 0x12_34_56_78_90_ab_cd_ef Quote: flat assembler version 1.67.29 (100000 kilobytes memory) |
|||
20 Dec 2008, 12:23 |
|
Tomasz Grysztar 13 Feb 2009, 10:30
revolution wrote:
Ooop, I forgot to put that in. However, I've now implemented it with the single quote character instead of underscore. With underscores it looked a bit too much like "fill in the blanks" for me. |
|||
13 Feb 2009, 10:30 |
|
revolution 13 Feb 2009, 11:06
I await with baited breath.
|
|||
13 Feb 2009, 11:06 |
|
revolution 13 Feb 2009, 11:34
Folks, Tomasz hasn't announced it, but it is now included in 1.67.32.
|
|||
13 Feb 2009, 11:34 |
|
revolution 13 Feb 2009, 11:36
Of course one problem with the single quote is that my editor thinks I have strings in my numbers!
Code: dq 0x12'34'56'78'90'ab'cd'ef |
|||
13 Feb 2009, 11:36 |
|
Tomasz Grysztar 13 Feb 2009, 13:05
revolution wrote: Looks weird for me, but okay on this phpBB board. This board's syntax highlight mimics the one from fasmw/fasmd, which is very closely reflecting fasm's parser. |
|||
13 Feb 2009, 13:05 |
|
revolution 13 Feb 2009, 13:09
This is what I see in Notepad2
|
||||||||||
13 Feb 2009, 13:09 |
|
DOS386 15 Feb 2009, 14:31
revolution wrote: This is what I see in Notepad2 Fault of NP2 and 1'000'000'000'000 thanks to Tomasz for this feature with apo's It even looks well in my IDE based on 1.67.29 also (doesn't compile, heh), in 1.67.32 it also seems to compile. Let's hope it doesn't break anything |
|||
15 Feb 2009, 14:31 |
|
vid 15 Feb 2009, 16:08
If apostrophe was added, I think due to already mentioned problems it would be wise to add underscore too. It would be stupid to keep fasm so deliberately separated from every "standard" tool.
|
|||
15 Feb 2009, 16:08 |
|
revolution 15 Feb 2009, 16:17
vid wrote: If apostrophe was added, I think due to already mentioned problems it would be wise to add underscore too. It would be stupid to keep fasm so deliberately separated from every "standard" tool. |
|||
15 Feb 2009, 16:17 |
|
DOS386 16 Feb 2009, 08:18
vid wrote: It would be stupid to keep fasm so deliberately separated from every "standard" tool. Then we must have assume and offset in FASM and delete format and store and much more. Also, we must delete support for $ as prefix for hex as well as 0x and 0X prefixes and keep h suffix only. Also, the flat design has to be replaced by mess-it-around design. BTW: 1. NASM rejects not only $FFFF'FFFF but also $FFFFFFFF ... it requires $0FFFFFFFF 2. M.A.S.M. AFAIK rejects $0FFFFFFFF also ... only FFFFFFFFh is tolerable there |
|||
16 Feb 2009, 08:18 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.