Ignore:
Timestamp:
Jul 12, 2022, 10:43:40 PM (2 years ago)
Author:
chronos
Message:
  • Modified: More instructions.
  • Modified: Optimized instruction execution with procedure array instead case.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CpuSingleSize/UAssembler.pas

    r220 r223  
    11unit UAssembler;
    2 
    3 {$mode delphi}
    42
    53interface
     
    142140        TokenValue := Parser.ReadNext;
    143141        if TokenValue.Kind = tkNumber then begin
    144           if not Labels.ContainsKey(TokenName.Value) then begin
     142          if not Labels.ContainsKey(TokenName.Value) and not Variables.ContainsKey(TokenName.Value) then begin
    145143            if TryStrToInt(TokenValue.Value, Number) then
    146144              Variables.Add(TokenName.Value, Number)
Note: See TracChangeset for help on using the changeset viewer.