Hi,
I've build a console language. It's a "tiny Forth" crossed with some "C syntaxes". I've named it "Corth". Arguments and results are pushed/poped on/from the stack processor. The heap is free for other needs or simply unused.
At moment, I've solved push & pop functions like that:
inline void PUSH (uint16_t u) { _set_R4_register(u); asm(" PUSH.W R4"); } inline uint16_t POP () { asm(" POP.W R4"); return _get_R4_register(); }
I think it's inelegant because I need to use the register R4.
Any idea to create 2 new intrinsics with CCS 4.2 ?
jmP