alias sensor d0 alias display d1 define SAMPLES 20 alias new r15 alias old r14 alias diff r13 alias seconds r12 alias rate r11 move sp 1 start: yield l new sensor VolumeOfLiquid s db Setting sp peek old sub diff new old mul seconds 0.5 SAMPLES div rate diff seconds mul rate 1000 rate s display Setting rate ble sp SAMPLES over # rollover move sp 1 over: push new j start |
MIPS is the programming language used by IC (integrated circuits) in the game Stationeers. Stationeering web site has a MIPS emulator with syntax highlighting and error detection.