sensortoy/www/test.html
Martin Donnelly 939a7aff4c init
2016-05-20 17:10:40 +01:00

23 lines
273 B
HTML

<script>
var v = 15390;
console.log(v.toString(2));
var m;
for (var t=0;t<16;t++)
{
m = v >> t;
console.log(m.toString(2), t);
}
for (var t=0;t<16;t++)
{
m = v << t;
console.log(m.toString(2));
}
</script>
a[0] | (a[1] << 8)