flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Macro to build macros

Author
Thread Post new topic Reply to topic
rydemstorm



Joined: 31 Oct 2012
Posts: 15
rydemstorm 21 Nov 2012, 14:10
I build a macro that let me know who operand its pass to a macro (example: it is a register, 1 byte, high; it is a segment, index; etc)
My intentions it use this macro to build new macros, I have a mov macro thats allow almost any movement from any operand to another operand (example: mov es,cs, mov [a],[b], etc) this macro, depending from the parameters generate the equivalent code (push cs, pop es, push ax, mov al,[b], mov [a],al, pop ax)
The first macro is tested and work fine, but for some reason when I call from another macro it works wrong or the logic operations works wrongs.

Lather I post all code.
Post 21 Nov 2012, 14:10
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 21 Nov 2012, 17:28
rydemstorm,

Don't be so shy, post some (even still not working as you expect) code, maybe we can suggest something useful.

As a side note, higher-level constructions (or abstractions?) introduce another option for sub-optimal code, and (seemingly) we do have enough already. Wink
Post 21 Nov 2012, 17:28
View user's profile Send private message Reply with quote
rydemstorm



Joined: 31 Oct 2012
Posts: 15
rydemstorm 21 Nov 2012, 21:31
I am work with MASM, TASM, NASM and FASM. Actualy I am teaching ASM using FASM, so I can not use the HL for my classes.
My intentions are to make macros useful but not as high as those used in HL.
Post 21 Nov 2012, 21:31
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.