So my earlier post is wrong, and you should pay attention to what Barf wrote. From my (revised) point of view -16::0 is valid syntax, but it does not have a usefully defined value.
Ok. Thanks. It would be good to have the specification speak to this case. It could say that implementation ...
Search found 8 matches
- Mon Mar 18, 2013 8:44 am
- Forum: JP1 - General Forum
- Topic: IRP Specification
- Replies: 52
- Views: 86792
- Sun Mar 17, 2013 2:49 pm
- Forum: JP1 - General Forum
- Topic: IRP Specification
- Replies: 52
- Views: 86792
- Sun Mar 17, 2013 2:42 pm
- Forum: JP1 - General Forum
- Topic: IRP Specification
- Replies: 52
- Views: 86792
- Sun Mar 17, 2013 9:37 am
- Forum: JP1 - General Forum
- Topic: IRP Specification
- Replies: 52
- Views: 86792
Binary forms of bitfields with unspecified lengths
In http://www.hifi-remote.com/wiki/index.php?title=IRP_Notation#Data_Structures
A bitfield evaluates to a binary form, an integer value expressed in binary notation with a fixed finite or infinite bit length in which negative integers are expressed in 1's complement notation.
The document says ...
A bitfield evaluates to a binary form, an integer value expressed in binary notation with a fixed finite or infinite bit length in which negative integers are expressed in 1's complement notation.
The document says ...
- Sat Mar 16, 2013 3:50 pm
- Forum: JP1 - General Forum
- Topic: IRP Specification
- Replies: 52
- Views: 86792
Oh. Thanks. I had it backwards.3FG wrote:0 would mean zero bits.
What about in expression contexts ?
For example:
Code: Select all
A=(12:3)
B=(12:0)
- Sat Mar 16, 2013 11:26 am
- Forum: JP1 - General Forum
- Topic: IRP Specification
- Replies: 52
- Views: 86792
- Sat Mar 16, 2013 11:05 am
- Forum: JP1 - General Forum
- Topic: IRP Specification
- Replies: 52
- Views: 86792
- Sat Mar 16, 2013 10:39 am
- Forum: JP1 - General Forum
- Topic: IRP Specification
- Replies: 52
- Views: 86792
Bitfield semantics
I am working through an implementation of an IRP parser and following the details in http://www.hifi-remote.com/wiki/index.php?title=IRP_Notation#Semantics_4
I have a couple of questions. To begin:
If either b or c is negative then the bitfield is invalid. In the execution process, a bitfield is ...
I have a couple of questions. To begin:
If either b or c is negative then the bitfield is invalid. In the execution process, a bitfield is ...