Browse Source

- don't require OFFSET in the 6502 inline asm reader

Nikolay Nikolov 1 month ago
parent
commit
97c937ea2a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/mos6502/ramos6502asm.pas

+ 2 - 2
compiler/mos6502/ramos6502asm.pas

@@ -1117,7 +1117,7 @@ Unit ramos6502asm;
           else
           else
             forceaddrtype:=false;
             forceaddrtype:=false;
         end;
         end;
-        BuildConstSymbolExpression([cseif_needofs],l,tempstr,tempsymtyp,size,cse_out_flags);
+        BuildConstSymbolExpression([],l,tempstr,tempsymtyp,size,cse_out_flags);
         if tempstr<>'' then
         if tempstr<>'' then
           begin
           begin
             oper.opr.typ:=OPR_SYMBOL;
             oper.opr.typ:=OPR_SYMBOL;
@@ -1502,7 +1502,7 @@ Unit ramos6502asm;
               begin
               begin
                 if not GotPlus and not GotStar then
                 if not GotPlus and not GotStar then
                   Message(asmr_e_invalid_reference_syntax);
                   Message(asmr_e_invalid_reference_syntax);
-                cse_in_flags:=[cseif_needofs,cseif_isref];
+                cse_in_flags:=[cseif_isref];
                 if GotPlus and negative then
                 if GotPlus and negative then
                   include(cse_in_flags,cseif_startingminus);
                   include(cse_in_flags,cseif_startingminus);
                 BuildConstSymbolExpression(cse_in_flags,l,tempstr,tempsymtyp,size,cse_out_flags);
                 BuildConstSymbolExpression(cse_in_flags,l,tempstr,tempsymtyp,size,cse_out_flags);