Binary extended

{bit: [0|1]}
{word2: bit[2]}
{word4: bit[4]}
{word8: bit[8]} //octet
{word16: bit[16]}
{word32: bit[32]}
{@8: {word8}} //address
{@8.2: word8[2]} // double cpu searching to express @16
{@16: {word16}}
{@16.2: [{word16}]*2}
{@32: {word32}}
{@32.2: [{word32}]*2}
{@64: {word64}}
{@n: {wordn}} // hardware dependent

// types integer
// does the hardware address is intented to be as long as the value ? Nope ! But it has to express some bus logic to reach the data
{int8: {@n, {sign: bit}, value: word8}}
{int16: {@n, {sign: bit}, value: word16}} //long
{int32: {@n, {sign: bit}, value: word32}} //double
{int64: {@n, {sign: bit}, value: word64}} //long_double
//types float
// fundamentals questions about math behaviors
{float8: {int8, pos: bit[4], decimal: word8}} // position can be 4 bit number ? really
// or just
{float8: {int8, decimal: word8}}
// Functions
// what is it

Primitives operations the cpu can do :

// types Char
// must primary define ASCII and func
{binary: [0|1]}
{@: [binary]*bit}
{connect>(@)>[binary]}
{value: connect({@: [binary]}) //data
{type: {integer4: {[value]*4, sign: {bit}}}}
{type: {integer8: {[value]*8, sign}}}
{type: {integer16: {[value]*16, sign}}}
{type: {float4: {integer4: {, decimal: integer4}}}}
{type: {float8: {integer8: {, decimal: integer8}}}}
{type: {float16: {integer16: {, decimal: integer16}}}}

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *