diff options
Diffstat (limited to 'bas.c')
-rw-r--r-- | bas.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -42,6 +42,8 @@ unsigned short stmcur; unsigned short starp; unsigned short codestart; unsigned short code_end; +unsigned short save_command_pos; +unsigned short save_command_tok; unsigned short vnstart; unsigned short vvstart; int filelen; @@ -111,6 +113,7 @@ void dump_header_vars(void) { fprintf(stderr, "LOMEM $%04x VNTP $%04x VNTD $%04x VVTP $%04x\n", lomem, vntp, vntd, vvtp); fprintf(stderr, "STMTAB $%04x STMCUR $%04x STARP $%04x\n", stmtab, stmcur, starp); fprintf(stderr, "vnstart $%04x, vvstart $%04x, codestart $%04x, code_end $%04x\n", vnstart, vvstart, codestart, code_end); + fprintf(stderr, "save_command_pos $%04x (tok $%02x)\n", save_command_pos, save_command_tok); } void parse_header(void) { @@ -127,6 +130,8 @@ void parse_header(void) { codestart = stmtab - TBL_OFFSET - (vntp - 256); vnstart = vntp - TBL_OFFSET; vvstart = vvtp - TBL_OFFSET; + save_command_pos = stmcur - TBL_OFFSET; + save_command_tok = program[save_command_pos + 4]; code_end = starp - TBL_OFFSET; if(vnstart > 0x0e) { |