BASIC for the RPi Pico, Pico 2 and micro:bit

Ready for beta testers

We have been working on the BASIC for RPi Pico 1 and 2, having started with the microbit:v2

The latest setupC and setupBASIC have had some initial testing.

trio

For Linux, Mac and Rasberry Pi computers can still use their release. The only thing you will need are .UF2 or .HEX file in this ZIP. Those files provide runtime support for BASIC programs like print, sort, floating point comparisons, and the like. The ARMbasic is a true compiller emitting ARM Thumb opcodes or for more complex operations links into the runtime support.

Give it a whirl and let us know how it goes.

The oft asked question is what is in that BASIC runtime, here are the entry definitions--

// f_abs
// f_addsbyte
// f_addstr
// f_dec2str
// f_div
// f_eq
// f_ge
// flt_print
// f_getrxd
// flt_2int
// f_getstr
// f_gettimer
// flt_2float
// flt_n2float
// f_gt
// f_hex2str
// flt_2str
// f_le
// f_left
// f_logand
// f_lognot
// f_logor
// f_logxor
// f_lt
// f_mod
// f_ne
// f_newstr
// flt_printR
// flt_add
// flt_sub
// f_pbinbit
// flt_neg
// flt_div
// flt_mul
// f_pboutbit
// f_print
// f_printch
// f_printCR
// f_printstr
// f_printTAB
// f_rddirbit
// b_sprintf
// b_sprintfR
// f_rev
// f_right
// f_savestr
// f_setbaud
// flt_lt
// flt_gt
// flt_le
// flt_ge
// f_settimer
// f_settxd
// flt_ne
// flt_n2int
// flt_eq
// f_str2dec
// f_strcmp
// f_strlen
// f_waitmicro
// f_wait
// f_wrdirbit
// f_adin
// f_fwrite
// f_intsw
// f_stop
// f_txfree
// f_sort

Previous Post