Skip to content

Commit

Permalink
Fixed floating point debug flags
Browse files Browse the repository at this point in the history
  • Loading branch information
maccasoft committed Sep 25, 2023
1 parent 777094e commit e7765af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ public byte[] compileDebugStatement(Spin2StatementNode root) {

switch (cmd) {
case "FDEC":
compileSpinStatement(node, os, DBC_TYPE_FLP | DBC_SIZE_LONG);
compileSpinStatement(node, os, DBC_TYPE_FLP | DBC_SIZE_LONG | flags);
break;
case "FDEC_ARRAY":
compileSpinArrayStatement(node, os, DBC_TYPE_FLP | DBC_SIZE_LONG | DBC_FLAG_ARRAY);
compileSpinArrayStatement(node, os, DBC_TYPE_FLP | DBC_SIZE_LONG | DBC_FLAG_ARRAY | flags);
break;

case "UDEC":
Expand Down Expand Up @@ -356,13 +356,13 @@ public byte[] compilePAsmDebugStatement(Spin2PAsmDebugLine root) {

switch (cmd) {
case "FDEC":
compileSimpleStatement(node, os, DBC_TYPE_FLP | DBC_SIZE_LONG);
compileSimpleStatement(node, os, DBC_TYPE_FLP | DBC_SIZE_LONG | flags);
break;
case "FDEC_REG_ARRAY":
compileArrayStatement(node, os, DBC_TYPE_FLP | DBC_FLAG_ARRAY);
compileArrayStatement(node, os, DBC_TYPE_FLP | DBC_FLAG_ARRAY | flags);
break;
case "FDEC_ARRAY":
compileArrayStatement(node, os, DBC_TYPE_FLP | DBC_SIZE_LONG | DBC_FLAG_ARRAY);
compileArrayStatement(node, os, DBC_TYPE_FLP | DBC_SIZE_LONG | DBC_FLAG_ARRAY | flags);
break;

case "UDEC":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ public class Spin2TokenMarker extends SourceTokenMarker {
debugKeywords.put("FDEC_REG_ARRAY", TokenId.FUNCTION);
debugKeywords.put("FDEC_ARRAY", TokenId.FUNCTION);

debugKeywords.put("FDEC_", TokenId.FUNCTION);
debugKeywords.put("FDEC_REG_ARRAY_", TokenId.FUNCTION);
debugKeywords.put("FDEC_ARRAY_", TokenId.FUNCTION);

debugKeywords.put("UDEC", TokenId.FUNCTION);
debugKeywords.put("UDEC_BYTE", TokenId.FUNCTION);
debugKeywords.put("UDEC_WORD", TokenId.FUNCTION);
Expand Down

0 comments on commit e7765af

Please sign in to comment.