Skip to content

Instantly share code, notes, and snippets.

View loader.conf
init_path="/command/s6-init:/sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init"
View free.fs
: ?# ( d -- d ) 2dup or 0= if bl hold else # then ;
: .padded ( n -- ) >r 0 <# r> 0 do ?# loop #> type ;
20 1024 * constant ram-size
$1FFFF7E0 h@ 1024 * constant flash-size
: compiletoram! ( ? -- ) if compiletoram else compiletoflash then ;
: flash-free ( -- n )
compiletoram?
compiletoflash flash-size here -
swap compiletoram! ;
View match.fs
\ Copyright 2020 Jan Bramkamp
\
\ Permission is hereby granted, free of charge, to any person obtaining a copy
\ of this software and associated documentation files (the "Software"), to deal
\ in the Software without restriction, including without limitation the rights
\ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\ copies of the Software, and to permit persons to whom the Software is
\ furnished to do so, subject to the following conditions:
\
\ The above copyright notice and this permission notice shall be included in