aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--whichbas.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/whichbas.c b/whichbas.c
index fdda5bf..9d3c283 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -255,7 +255,7 @@ CALLBACK(handle_cmd) {
}
break;
case 0x58: /* TRACE (optional + or -), EXTEND (BXE; no args) */
- /* COMPLETE (except for unlikely direct mode EXTEND) */
+ /* COMPLETE */
if(nexttok == OP_PLUS || nexttok == OP_MINUS) {
bas_type = BT_TURBO;
print_result();
@@ -268,11 +268,11 @@ CALLBACK(handle_cmd) {
mode only). The only way to get EXTEND into a BXE program is
to do a direct mode command like:
EXTEND:SAVE "D:PROG"
- ...which of course puts it at line 32768. So if this token
- appears on any other line, it must be Turbo's TRACE. */
- if(lineno < 32768) {
- remove_type(BT_BXE);
- }
+ ...which of course puts it at line 32768. But this code will
+ never see that, because we'd already detect EXTENDed BXE
+ based on the first 2 bytes of the file.
+ */
+ remove_type(BT_BXE);
}
break;
case 0x59: /* TEXT or PROCEDURE */