source: mainline/uspace/dist/src/bithenge/bits.bh

Last change on this file was 1c79996, checked in by Sean Bartell <wingedtachikoma@…>, 13 years ago

Bithenge: fix issues and expand coverage for test.sh

  • Property mode set to 100644
File size: 597 bytes
Line 
1transform main = struct {
2 .bits_le <- repeat(8) { bit } <- bits_le <- known_length(1);
3 .bits_be <- repeat(8) { bit } <- bits_be <- known_length(1);
4 <- struct {
5 .le0 <- uint_le(0);
6 .le1 <- uint_le(1);
7 .le2 <- uint_le(2);
8 .le3 <- uint_le(3);
9 .le4 <- uint_le(4);
10 .le5 <- uint_le(5);
11 .le6 <- uint_le(6);
12 .le7 <- uint_le(7);
13 .le8 <- uint_le(8);
14
15 .be8 <- uint_be(8);
16 .be7 <- uint_be(7);
17 .be6 <- uint_be(6);
18 .be5 <- uint_be(5);
19 .be4 <- uint_be(4);
20 .be3 <- uint_be(3);
21 .be2 <- uint_be(2);
22 .be1 <- uint_be(1);
23 .be0 <- uint_be(0);
24 } <- bits_be <- known_length(9);
25};
Note: See TracBrowser for help on using the repository browser.