flat assembler
Message board for the users of flat assembler.
Index
> Non-x86 architectures > AVR tips |
Author |
|
Tomasz Grysztar 03 Oct 2016, 08:16
shoorick wrote: I've noticed there is break command omited in avr.inc. Code: AVR_BREAK_INSTRUCTION = 1 macro BREAK? if AVR_BREAK_INSTRUCTION dw 1001'0101'1001'1000b else break end if end macro iterate directive, while,repeat,rept,iterate,irp,irpv macro directive?! arguments& AVR_BREAK_INSTRUCTION =: 0 directive arguments end macro macro end?.directive?! end directive restore AVR_BREAK_INSTRUCTION end macro end iterate shoorick wrote: lds/sts 16-bit are not optimized versions of lds/sts. For now I'm just removing this other variant of LDS/STS from the example. It might have been my over-zeal to demonstrate fasm's abilities of instruction length optimization that led to inclusion of all these variants at once. In the nearest future I don't think I will be able to put enough effort into examples for other architectures to bring them to the level of x86 ones (I still need much more time to finish x86, as there are still more extensions that I would like to include). It would be great if there happened to be someone more interested in making some usable set of headers for AVR - I would assist in any efforts. |
|||
03 Oct 2016, 08:16 |
|
shoorick 03 Oct 2016, 08:27
Tomasz Grysztar wrote: This was intentionally omitted, because the HEX output macros use the BREAK that is the instruction of fasm/fasmg (to terminate the WHILE loop) and redefining this as a different instruction would break things. and why remove those lds/sts 16-bit versions at all? just add them as lds16/sts16 as if somebody occasionally meet neccesity in them thanks! _________________ UNICODE forever! |
|||
03 Oct 2016, 08:27 |
|
Tomasz Grysztar 03 Oct 2016, 08:40
shoorick wrote: and why remove those lds/sts 16-bit versions at all? just add them as lds16/sts16 as if somebody occasionally meet neccesity in them |
|||
03 Oct 2016, 08:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.