Are there any programing languges that can be defined in simple
primtives like + - logical (load) (store) shifting. that is extendable.
Forth comes to mind, but still too abstract as primitives.
I am coding floating point routines for the 4kb BIOS I have,
and wishing I could write all in a high level languge.
How ever I have to use ADC SBC and other Computer instructions
that use the carry and other flags as well as offsets from the stack pointer. To my knowlage there are no programimg laguages that let me express such featues and having just
half int and int data sizes. Any thoughts about expaning bootrapable
langauge like this.
primitives add(a b) ADD a to b return a mult (x y) i = #word_size b = x a = 0 loop i -- if odd b then add y to a if carry_flag then shift a:b right with carry end else shift a:b right with zero end return a:b