Hello, recently I've been trying to make some macro that mimic QBasic and I've had quite a bit of success with input and others, but one problem I'm having is the print macro. In QB you can type
a = "hey"
PRINT "Hello World!", a
and have no problem. So what I already have it able to do is have it so you can write
and print the word hello, but what I also want is to be able to type
using the same macro. I want it so I could put it together like so
print "Hello", a
a db "user", 0
My question is, HOW DO I DETECT QUOTE MARKS? Here is my code...
macro print [string]{
mov si, $+5
jmp @f
db string, 0
@@:
lodsb
cmp al, 0
jz @f
mov ah, 0eh
int 10h
jmp @b
@@:
}