This will matter big time with the literal changes
newline ();
output_line ("\t;program area SMALLC_GENERATED is RELOCATABLE");
output_line ("\t.module SMALLC_GENERATED");
- gen_code();
+ code_segment_gtext();
}
/**
*/
void code_segment_gtext(void) {
output_line ("\t.text");
+ indata = 0;
}
/**
*/
void data_segment_gdata(void) {
output_line ("\t.data");
+ indata = 1;
}
/**
output_line(";end");
}
-void gen_data(void)
-{
- indata = 1;
- output_line(".data");
-}
-
-void gen_code(void)
-{
- indata = 0;
- output_line(".code");
-}