; Text output as expanding zero-terminated string at text_out_base ; The final exit result byte is written here final_result = $6000 ; Text output is written here as an expanding ; zero-terminated string text_out_base = $6004 bss_res text_out_temp zp_res text_out_addr,2 init_text_out: ldx #0 ; Put valid data first setb text_out_base,0 lda #$80 jsr set_final_result ; Now fill in signature that tells emulator there's ; useful data there setb text_out_base-3,$DE setb text_out_base-2,$B0 setb text_out_base-1,$61 ldx #>text_out_base stx text_out_addr+1 setb text_out_addr,