Ignore:
Timestamp:
May 1, 2019, 9:48:46 PM (6 years ago)
Author:
chronos
Message:
  • Added: Assembler labels reference address calculation.
  • Fixed: Displaying address/data hex numbers in opcode and instruction.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/virtualcpu4/UMachine.pas

    r182 r185  
    3434    LockInput: TCriticalSection;
    3535    LockOutput: TCriticalSection;
    36     property MemorySize: Integer read GetMemorySize write SetMemorySize;
     36    procedure ClearMemory;
    3737    constructor Create;
    3838    destructor Destroy; override;
     39    property MemorySize: Integer read GetMemorySize write SetMemorySize;
    3940  end;
    4041
     
    159160end;
    160161
     162procedure TMachine.ClearMemory;
     163begin
     164  FillChar(Memory^, MemorySize, $ff);
     165end;
     166
    161167
    162168end.
Note: See TracChangeset for help on using the changeset viewer.