Changeset 165 for branches/virtcpu fixed int/UFormMain.pas
- Timestamp:
- Aug 9, 2018, 9:45:07 AM (7 years ago)
- Location:
- branches/virtcpu fixed int
- Files:
- 
      - 2 edited
 
 - 
          
  . (modified) (1 prop)
- 
          
  UFormMain.pas (modified) (3 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      branches/virtcpu fixed int- Property svn:ignore
- 
      old new 3 3 virtcpu.lps 4 4 virtcpu.res 5 *.dbg 
 
- 
      
 
- Property svn:ignore
- 
      branches/virtcpu fixed int/UFormMain.pasr163 r165 72 72 AddOut(0, 1); 73 73 AddInc(2); 74 AddJ r(LabelStart);74 AddJump(LabelStart); 75 75 AddHalt; 76 76 end; … … 154 154 function TForm1.CpuInput(Port: T): T; 155 155 begin 156 Result := 0; 156 157 case Port of 157 158 0: begin … … 162 163 if Length(KeyInputBuffer) > 0 then begin 163 164 Result := Ord(KeyInputBuffer[0]); 164 Move(KeyInputBuffer[1], KeyInputBuffer[0], Length(KeyInputBuffer) - 1); 165 if Length(KeyInputBuffer) > 1 then 166 Move(KeyInputBuffer[1], KeyInputBuffer[0], Length(KeyInputBuffer) - 1); 165 167 SetLength(KeyInputBuffer, Length(KeyInputBuffer) - 1); 166 168 end else Result := 0; 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
