BigEd / atalan

Automatically exported from code.google.com/p/atalan
MIT License
1 stars 0 forks source link

Support bit operations #97

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This should be done using special variable operator (bitarray or %).

var%0    provides access to 0-th bit of a variable
var%7    7-th bit
var%0..3 accesses bits 0 to 3 (4 lowest bits)

Using this syntax, it is possible to define processor instructions or rules to 
work with bit variables.

There should be some support for defining bit variables in Atalan.
We should probably define it like structure using bits.
Ranges can be used for this purpose.

Original issue reported on code.google.com by rudla.ku...@gmail.com on 18 Oct 2011 at 3:22

GoogleCodeExporter commented 9 years ago

Original comment by rudla.ku...@gmail.com on 21 Jan 2012 at 8:20