CNC-Fräse und Basteleien |
|
2020-10-15: Assembler Gems: 8-Bit BCD Calendar Function Snippets
; input: r17: month ; output: r17: decremented month subi r17, 1 brhc hc subi r17, 6 hc: brnz done ldi r17, 0x12 ; decrement year here done:
2017-12-23: Regex Parser in C With Continuation Passing and O(1) Stack
cont_t foo( int a, cont_t *cont, cont_t *final) { return (cont_t){ cont->code, a*a, cont, new_cont( foo_final, a, cont, final) }; }
2017-12-19: Regular Expression Parser in C Using Continuation Passing
int foo( int a, cont_t cont, data_t *data) { return cont(a*a, data) && cont(a*a*a, data); }