/** * modify the stack pointer to the new value indicated * @param newstkp new value */ int gen_modify_stack(int newstkp) { int k; k = newstkp - stkp; if (k == 0) return (newstkp); output_with_tab("add sp "); output_decimal(k); newline(); return (newstkp); }
/** * report errors */ void errorsummary(void) { if (ncmp) error("missing closing bracket"); newline(); gen_comment(); output_decimal(errcnt); if (errcnt) errfile = YES; output_string(" error(s) in compilation"); newline(); gen_comment(); output_with_tab("literal pool:"); output_decimal(litptr); newline(); gen_comment(); output_with_tab("global pool:"); output_decimal(global_table_index - rglobal_table_index); newline(); gen_comment(); output_with_tab("Macro pool:"); output_decimal(macptr); newline(); if (errcnt > 0) pl("Error(s)"); }
/** * Output a decimal number to the assembler file, with # prefix * @param num */ void output_number(int num) { output_byte('#'); output_decimal(num); }
/** * Output a decimal number to the assembler file, with # prefix * @param num */ void output_number(int num) { output_decimal(num); }