Mercurial > hg > index.cgi
comparison src/init.s @ 136:e49bd0493baf
Checkpoint updates to immediate mode program editing and some memory handling
author | William Astle <lost@l-w.ca> |
---|---|
date | Fri, 12 Jul 2024 23:29:45 -0600 |
parents | c7f2f63cbcfe |
children | 18940aa42dcf |
comparison
equal
deleted
inserted
replaced
135:3a4cb89a419c | 136:e49bd0493baf |
---|---|
216 clr ,-x ; make a hole for the "end of call stack" flag | 216 clr ,-x ; make a hole for the "end of call stack" flag |
217 stx cstackptr ; save the new call stack pointer | 217 stx cstackptr ; save the new call stack pointer |
218 leas ,x ; put the actual stack below the above | 218 leas ,x ; put the actual stack below the above |
219 ldx #heapstart ; point to start of free memory | 219 ldx #heapstart ; point to start of free memory |
220 clr ,x+ ; put a NUL before the start of the program | 220 clr ,x+ ; put a NUL before the start of the program |
221 stx progtext ; put the start of the program there | 221 stx prog_text ; put the start of the program there |
222 clr ,x+ ; put a NULL pointer to mark end of program | 222 clr ,x+ ; put a NULL pointer to mark end of program |
223 clr ,x+ | 223 clr ,x+ |
224 stx vartab ; put start of integer variables at end of program | 224 stx vartab ; put start of integer variables at end of program |
225 stx objecttab ; also put the start of large objects there | 225 stx objecttab ; also put the start of large objects there |
226 stx freestart ; mark the start of free memory | 226 stx freestart ; mark the start of free memory |