hi!
i'm starting to program in asm (i have a school project).
i'm programming in intel asm for an 8088 simulator (the one in
tanenbaum's "structured computer organization" book)
i have a question:
is it a mistake to write subroutines that use variables to store
(intermediate and return) values?
shouldn't they only use registers?
this way, you know you can always take that routine and put it wherever
you want, without having to use the variable too.
am i correct?
thanks
asy