Re: A89: Starting out assembly, need help


[Prev][Next][Index][Thread]

Re: A89: Starting out assembly, need help




In a message dated 12/01/1998 7:05:50 PM Pacific Standard Time,
TurboSoft@aol.com writes:

> so where is a good $xxxx number to start storing data in an asm program?

You don't need to worry about it.  You define a variable like this:

var dc.b 5

This creates a one byte variable called var containing the number 5.  It is
stored in your program.
You would access var like this:
move.b 30, pc(var)
I'm pretty sure this is how it works.  You can look in some earlier
discussions for how the letters pc and the parentheses work.

Daniel Imfeld