Changeset 59 for branches/ByteArray/Core.pas
- Timestamp:
- Nov 25, 2023, 11:47:52 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ByteArray/Core.pas
r58 r59 78 78 begin 79 79 Machine := TMachine.Create; 80 InitMachine;80 //InitMachine; 81 81 LoadConfig; 82 82 … … 118 118 end; 119 119 FormDisassembler.Disassembler.Memory := Machine.Memory; 120 FormDisassembler.Disassembler.DataWidth := Machine.Cpu.DataWidth; 121 FormDisassembler.Disassembler.AddressWidth := Machine.Cpu.AddressWidth; 120 122 FormDisassembler.Show; 121 123 end; … … 222 224 // LD A, 'A' 223 225 WriteInstruction(inLoadConst); 224 WriteRegister( riA);226 WriteRegister(0); 225 227 Write(DataWidth, Ord('A')); 226 228 227 229 // LD B, 8 228 230 WriteInstruction(inLoadConst); 229 WriteRegister( riB);231 WriteRegister(1); 230 232 Write(DataWidth, Machine.Serial.BaseAddress); 231 233 232 234 // OUT (B), A 233 235 WriteInstruction(inOutput); 234 WriteRegister( riB);235 WriteRegister( riA);236 WriteRegister(1); 237 WriteRegister(0); 236 238 237 239 // LD B, 238 240 WriteInstruction(inLoadConst); 239 WriteRegister( riB);241 WriteRegister(1); 240 242 Write(DataWidth, Machine.FrameBuffer.BaseAddress); 241 243 242 244 WriteInstruction(inLoadConst); 243 WriteRegister( riC);245 WriteRegister(2); 244 246 Write(DataWidth, 10); 245 247 … … 247 249 248 250 WriteInstruction(inOutput); 249 WriteRegister( riB);250 WriteRegister( riA);251 WriteRegister(1); 252 WriteRegister(0); 251 253 252 254 WriteInstruction(inInc); 253 WriteRegister( riA);255 WriteRegister(0); 254 256 255 257 WriteInstruction(inDec); 256 WriteRegister( riC);258 WriteRegister(2); 257 259 258 260 WriteInstruction(inJumpNotZero); 259 WriteRegister( riC);261 WriteRegister(2); 260 262 Write(AddressWidth, Loop); 261 263 … … 278 280 else ThemeManager1.Theme := ThemeManager1.Themes.FindByName('System'); 279 281 StartUpForm := ReadStringWithDefault('StartUpForm', 'Screen'); 282 AutoStartMachine := ReadBoolWithDefault('AutoStartMachine', True); 280 283 finally 281 284 Free; … … 295 298 else DeleteValue('Theme'); 296 299 WriteString('StartUpForm', StartUpForm); 300 WriteBool('AutoStartMachine', AutoStartMachine); 297 301 finally 298 302 Free;
Note:
See TracChangeset
for help on using the changeset viewer.