Post Reply 
Confused about variables
02-25-2016, 12:55 AM
Post: #3
RE: Confused about variables
(02-24-2016 03:05 PM)Tim Wessman Wrote:  However, you can set the size on a fixed size home integer. For example, #FF:16h In this case, you can probably be certain that you've stored an integer with the correct word size by doing :16h, :-8h (signed 8), etc

Thank you very much, Tim for the guidance.

Let's see if I understand you correctly. When I fetch an instruction from the vector, I would do it like this:

D1:=M1(P1):16h;

And that will store it as a 16 bit integer, right?

I also need to perform operations like this:

A:=M1((H*256)+L);

So I need to code that as:

A:=M1((H*256)+L):16h;

Is that right, or would I need to add the :16h suffix onto all of the elements?

Thanks,
smp
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Confused about variables - smp - 02-24-2016, 12:31 PM
RE: Confused about variables - Tim Wessman - 02-24-2016, 03:05 PM
RE: Confused about variables - smp - 02-25-2016 12:55 AM
RE: Confused about variables - smp - 02-26-2016, 09:58 PM
RE: Confused about variables - smp - 02-29-2016, 05:25 PM



User(s) browsing this thread: 1 Guest(s)