From 388ed4b1dbc1c0b4d3922f890abb40830dad25eb Mon Sep 17 00:00:00 2001 From: Dagen Brock Date: Thu, 12 Mar 2020 15:12:23 -0500 Subject: [PATCH] fix 'TYP' behavior to set the filetype in _FileInformation.txt on assembly->DSK --- Source/a65816_Line.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Source/a65816_Line.c b/Source/a65816_Line.c index ece3c65..5fdab76 100644 --- a/Source/a65816_Line.c +++ b/Source/a65816_Line.c @@ -188,7 +188,17 @@ int DecodeLineType(struct source_line *first_line, struct macro *current_macro, AddDateLine(current_line); continue; } - + + /** TYP: File type **/ + if(!my_stricmp(current_line->opcode_txt,"TYP")) + { + current_line->type = LINE_DIRECTIVE; + + /* Decode the value */ + current_omfproject->type = GetByteValue(current_line->operand_txt); + continue; + } + /** Line Defining a Global Entry Point for InterSegs **/ if(strlen(current_line->label_txt) > 0 && !my_stricmp(current_line->opcode_txt,"ENT")) {