disp 16b

bitwise display of the first 16 bits of 'inlet_in'
Author: Robert Schirmer
License: BSD
Github: rbrt/disp/disp 16b.axo

Inlets

int32 offset inside the table

Outlets

int32 chain

Displays

bool32 d0

bool32 d1

bool32 d2

bool32 d3

bool32 d4

bool32 d5

bool32 d6

bool32 d7

bool32 d8

bool32 d9

bool32 d10

bool32 d11

bool32 d12

bool32 d13

bool32 d14

bool32 d15

Declaration
uint32_t bits[16];
Init
{
  int i;
  for (i = 0; i < 16; i++)
    bits[i] = ((1 << i) + 0);
}
Control Rate
disp_d0 = (inlet_in & bits[0]);
disp_d1 = (inlet_in & bits[1]);
disp_d2 = (inlet_in & bits[2]);
disp_d3 = (inlet_in & bits[3]);

disp_d4 = (inlet_in & bits[4]);
disp_d5 = (inlet_in & bits[5]);
disp_d6 = (inlet_in & bits[6]);
disp_d7 = (inlet_in & bits[7]);

disp_d8 = (inlet_in & bits[8]);
disp_d9 = (inlet_in & bits[9]);
disp_d10 = (inlet_in & bits[10]);
disp_d11 = (inlet_in & bits[11]);

disp_d12 = (inlet_in & bits[12]);
disp_d13 = (inlet_in & bits[13]);
disp_d14 = (inlet_in & bits[14]);
disp_d15 = (inlet_in & bits[15]);

outlet_chain = (inlet_in >> 16);

Privacy

© 2024 Zrna Research