flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Idea Macro Smart Regs |
Author |
|
DimonSoft 23 Apr 2021, 12:10
Any example of real world task where this could be useful would be great.
Also the logic behind the macro is unclear from your example. |
|||
23 Apr 2021, 12:10 |
|
Overclick 23 Apr 2021, 14:37
Interesting idea to use some kind of own stack, but do not touch the registers.
It can be implemented as macros: mypush <something> mypop <something> Without any worries about stack address or operations quantity. Without size limits of original push-pop. It can be some cyclic buffer as well |
|||
23 Apr 2021, 14:37 |
|
Roman 24 Apr 2021, 04:54
I try do this. Work ok
Code: r16 EQU [memR16] r17 EQU [memR17] r18 EQU [memR18] macro SmrtReg chV { mov FirstSreg,chV FirstSreg equ FirstSreg + 1 } .data memR16 dq 0 memR17 dq 0 memR18 dq 0 .code FirstSreg equ r13 mov eax,dword r16 ;do mov eax,dword [memR16] SmrtReg 10 ;this ok do mov r13, 10 SmrtReg 10 ;this get me error: r13+1 But my problem increase FirstSreg. Fasm get me error: r13+1 I want get r14 but not r13+1 |
|||
24 Apr 2021, 04:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.