flat assembler
Message board for the users of flat assembler.
Index
> Main > Wishes to control the code |
Author |
|
Tomasz Grysztar 08 Dec 2006, 19:47
booter wrote: - I'd like to have some support for self-modifying code, particulary being able to change immediate operand regardless of command length. Do you mean something like: Code: mov [imm],8 add eax,dword 0 label imm dword at $-4 booter wrote: - I'd like to have simple way to raise an error when generated code exceeds predefined limit. You may try this: Code: if $>10000h display 'The code size limit has been excedeed.' rb -1 end if booter wrote: - It may be useful to allow "size prefix" to be specified explicitly, like See this discussion: http://board.flatassembler.net/topic.php?t=5381 They may be easily implemented as macros anyway. booter wrote: In general I see a big empty gap between x86 code and "Intel-style"-assembler. Does anybody have any idea how to fill it? I see this gap as an advantage - one of the things I expect from assembler is to abstract from the instruction encodings, so that programmer can focus on functionality of the instruction - what exactly he wants to have done - and the assembler may choose the best form for him, so that he doesn't even have to know, that what he percepts as the same instructions, for machine is actually something completely different. Like MOV being in fact either "load" (from memory) or "store" (into memory). |
|||
08 Dec 2006, 19:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.