flat assembler
Message board for the users of flat assembler.
Index
> Programming Language Design > fasmg macro support for Parallax MCUs Goto page Previous 1, 2 |
Author |
|
Tomasz Grysztar 14 Oct 2016, 06:55
Listing macro, as the name implies, is just a macro. It gets processed every time the source code is processed, just like any other macro.
|
|||
14 Oct 2016, 06:55 |
|
jmg 14 Oct 2016, 08:48
Tomasz Grysztar wrote: Listing macro, as the name implies, is just a macro. It gets processed every time the source code is processed, just like any other macro. How does it limit to one listing copy, not one per pass ? |
|||
14 Oct 2016, 08:48 |
|
Tomasz Grysztar 14 Oct 2016, 10:06
jmg wrote: How does it limit to one listing copy, not one per pass ? |
|||
14 Oct 2016, 10:06 |
|
Tomasz Grysztar 14 Oct 2016, 16:50
One simple and small improvement to the listing macro that makes the "disphex" macro use the look-up table:
Code: namespace Listing base = $$ offset = $ virtual at 0 HexDigits:: db '0123456789ABCDEF' end virtual macro disphex number*,digits:8 repeat digits load digit:byte from Listing.HexDigits:((number) shr ((%%-%) shl 2)) and 0Fh display digit end repeat end macro end namespace Last edited by Tomasz Grysztar on 17 Oct 2016, 07:48; edited 1 time in total |
|||
14 Oct 2016, 16:50 |
|
jmg 14 Oct 2016, 22:16
Thanks, that gives a small boost to speed
I could give better feedback, if the time reported had more digits... |
|||
14 Oct 2016, 22:16 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.