# Start-up for a machine-code program that BASIC CALLs at A200h: clear the # variables, run main, and return to BASIC. Programs have no initialised # variables (gen.py's tables are const, so they stay with the code). .section .text.start, "ax" .globl _start _start: la t0, __bss_start la t1, __bss_end 1: bgeu t0, t1, 2f sw zero, 0(t0) addi t0, t0, 4 j 1b 2: tail main # main's return goes back to BASIC