about var inits

This commit is contained in:
Irmen de Jong
2024-10-21 21:20:47 +02:00
parent 7585b6ef6f
commit 9927af1095
3 changed files with 2 additions and 6 deletions

View File

@@ -471,6 +471,7 @@ internal class ProgramAndVarsGen(
private fun entrypointInitialization() {
// zero out the BSS area first, before setting the variable init values
// this is mainly to make sure the arrays are all zero'd out at program startup
asmgen.out(" jsr prog8_lib.program_startup_clear_bss")
// initialize block-level (global) variables at program start