May be it's a kind of stupid idea, but ... Is it possible to write macro for every BASIC command?


You wrote after asm header something like this:

print "Hello world!"
a = 1 + 2 +3
print a & " = a"

I tried to do something, but I'm find out it impossible (may be just for me).

It's really stupid, isn't it?
Posted on 2002-12-15 11:57:28 by gaidar
Yes, it's realy BASIC...


If BASIC could be made, then it should be possible, but then it would be asmBASIC... :)
Posted on 2002-12-15 12:25:59 by scientica :)

supports Macros & inline ASM

Posted on 2002-12-15 23:45:21 by Brad
invoke HelloWorld

yea first tutorial finished
Testing new :stupid:
Posted on 2002-12-16 08:55:13 by drakoforma
Posted on 2003-04-08 10:33:27 by gaidar
Where is that stupid ICON?
Posted on 2003-04-12 03:52:20 by realvampire
Posted on 2003-04-12 07:01:41 by Vortex
Whatta hell are we posting here?
Posted on 2003-04-16 09:40:36 by gaidar
Can you be more specific?
Posted on 2003-04-16 10:17:18 by Vortex
I don't understand. What is's all about? May be my question was so stupid or I'm stupid :) but may be stop extend this topic? ;)
Posted on 2003-04-18 11:41:55 by gaidar
Yes, you can write an ASM equivalent for every function in any language. In the end all languages boil down to ASM regardless of how many layers they go through to get there. After all your computer only understands ASM, all other languages are just translators. You would need to make a syntax parser to analyze the line of code then execute a procedure or a series of procedures for each line. You need a variable table and some other stuff but you add those as your language gets more complex. For example:

MyVar = Mod(25/5)

would be something like:

xor edx,edx
mov eax,25
mov ebx,5
div ebx
mov MyVar,edx

EDIT Actually hitchhikr is working on something like that he might have something to look at :
Posted on 2003-04-18 15:58:02 by donkey
Yes, he did a goog job!

Thanks for link.
Posted on 2003-04-22 02:59:58 by gaidar