Hey Kyle,

Although the syntax is incorrect according to the doc, it does work. There 
are most likely more instances of the above. The first should be bit, 
however the 2nd should be allowed.
var byte*4 stopwatch_high_value at _stopwatch_count : 16

I do like the syntax you suggested, but there are other uses such as:

This should be allowed because I may want to declare a nibble in the middle 
of a variable or array as follows:
var bit*4 stopwatch_high_value at _stopwatch_count : 12


I do understand that ones like this could be complicated due to crossing a 
boundary. I think this does not work at the moment
var byte stopwatch_high_value at _stopwatch_count : 4

If I wanted to do this currently, I would need to make a pseudo variable. 
What is more efficient, a pseudo variable or allowing the above?

Thanks,

Matt.

On Wednesday, January 9, 2013 2:13:08 PM UTC-5, zmafoox wrote:
>
> Greetings, 
>
> I'm continuing to try to get the compiler to act correctly and have found 
> bugs 
> (my fault, due to lack of documentation) in some of jallib. Specifically, 
> the 
> syntax: 
>
> VAR type var2 AT va1 : n 
>
> this syntax was only meant to work with variables of type BIT. I checked 
> jallib and found two instances where this is wrong: 
>
> mp3_decoder_vs1053b.jal:vs_soft_reset: 
>
> var byte mode 
> var byte reset at mode : 2 
>
> lib/stopwatch.jal -- definition of stopwatch_high_value: 
>
> var byte*4 stopwatch_high_value at _stopwatch_count : 16 
>
> Looking at the output, neither of these produce the expected code. It 
> looks 
> like the first one, `reset' should a a bit. 
>
> For the second one, I'm going to try to allow the following: 
>
> var byte*4 stopwatch_high_value at _stopwatch_count + 2
>
> --kyle
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to