Skip to content

Commit 583f690

Browse files
Fix: BASIC disassembler, PRINT preferred to ?
1 parent 19a9d91 commit 583f690

28 files changed

+40
-22
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,4 @@
312312
/Sample Projects/MacroTest/macro_ifndef.prg
313313
/Sample Projects/MacroTest/zone.variable in outline.prg
314314
/Sample Projects/MacroTest/renumberwithremonly.prg
315+
/Sample Projects/MacroTest/tsbopenmacro.prg

C64Models/Parser/BASICDialect.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ static Dialect()
7979
BASICV2.AddOpcode( "DEF", 0x96, "dE" );
8080
BASICV2.AddOpcode( "POKE", 0x97, "pO" );
8181
BASICV2.AddOpcode( "PRINT#", 0x98, "pR" );
82-
BASICV2.AddOpcode( "?", 0x99 );
8382
BASICV2.AddOpcode( "PRINT", 0x99 );
83+
BASICV2.AddOpcode( "?", 0x99 );
8484
BASICV2.AddOpcode( "CONT", 0x9A, "cO" );
8585
BASICV2.AddOpcode( "LIST", 0x9B, "lI" );
8686
BASICV2.AddOpcode( "CLR", 0x9C, "cL" );
@@ -157,6 +157,9 @@ public Opcode AddOpcode( string Opcode, int ByteValue )
157157
{
158158
OpcodesFromByte[(ushort)ByteValue] = opcode;
159159
}
160+
else
161+
{
162+
}
160163

161164
return opcode;
162165
}
@@ -171,6 +174,9 @@ public Opcode AddOpcode( string Opcode, int ByteValue, string ShortCut )
171174
{
172175
OpcodesFromByte[(ushort)ByteValue] = opcode;
173176
}
177+
else
178+
{
179+
}
174180

175181
return opcode;
176182
}

C64Studio/BASIC Dialects/BASIC 65.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ POKE;97;
155155
POLYGON;fe2f;
156156
POS;b9;
157157
POT;ce02;
158-
?;99;
159158
PRINT;99;
159+
?;99;
160160
PRINT#;98;
161161
RCOLOR;cd;
162162
RCURSOR;fe42;

C64Studio/BASIC Dialects/BASIC Lightning.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ POKE;97;
6161
P.;97;
6262
PRINT#;98;
6363
PR.;98;
64-
?;99;
6564
PRINT;99;
65+
?;99;
6666
CONT;9A;
6767
C.;9A;
6868
LIST;9B;

C64Studio/BASIC Dialects/BASIC V10.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ POKE;97;
131131
POLYGON;fe2f;
132132
POS;b9;
133133
POT;ce02;
134-
?;99;
135134
PRINT;99;
135+
?;99;
136136
PRINT#;98;
137137
USING;fb;
138138
PUDEF;dd;

C64Studio/BASIC Dialects/BASIC V2 - X16.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ VERIFY;95;vE
3939
DEF;96;dE
4040
POKE;97;pO
4141
PRINT#;98;pR
42-
?;99;
4342
PRINT;99;
43+
?;99;
4444
CONT;9A;cO
4545
LIST;9B;lI
4646
CLR;9C;cL

C64Studio/BASIC Dialects/BASIC V3.5.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ VERIFY;95;vE
3939
DEF;96;dE
4040
POKE;97;pO
4141
PRINT#;98;pR
42-
?;99;
4342
PRINT;99;
43+
?;99;
4444
CONT;9A;cO
4545
LIST;9B;lI
4646
CLR;9C;cL

C64Studio/BASIC Dialects/BASIC V4.5.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ VERIFY;95;vE
3636
DEF;96;dE
3737
POKE;97;pO
3838
PRINT#;98;pR
39-
?;99;
4039
PRINT;99;
40+
?;99;
4141
CONT;9A;cO
4242
LIST;9B;lI
4343
CLR;9C;cL

C64Studio/BASIC Dialects/BASIC V7.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ SAVE;94;sA
3333
VERIFY;95;vE
3434
DEF;96;dE
3535
PRINT#;98;pR
36-
?;99;
3736
PRINT;99;
37+
?;99;
3838
LIST;9B;lI
3939
CLR;9C;cL
4040
CMD;9D;cM

C64Studio/BASIC Dialects/Laser BASIC.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ POKE;97;
6262
P.;97;
6363
PRINT#;98;
6464
PR.;98;
65-
?;99;
6665
PRINT;99;
66+
?;99;
6767
CONT;9A;
6868
C.;9A;
6969
LIST;9B;

0 commit comments

Comments
 (0)