|
Last change
on this file was 197, checked in by chronos, 6 years ago |
- Modified: All parts of virtual machine have own form in Forms subdirectory.
- Modified: Main form moved to Forms subdirectory.
- Modified: TCpu class moved to UCpu unit.
- Added: Assembler and dissasembler forms.
|
|
File size:
2.1 KB
|
| Line | |
|---|
| 1 | object FormAssembler: TFormAssembler
|
|---|
| 2 | Left = 474
|
|---|
| 3 | Height = 648
|
|---|
| 4 | Top = 313
|
|---|
| 5 | Width = 846
|
|---|
| 6 | Caption = 'Assembler'
|
|---|
| 7 | ClientHeight = 648
|
|---|
| 8 | ClientWidth = 846
|
|---|
| 9 | DesignTimePPI = 144
|
|---|
| 10 | OnCreate = FormCreate
|
|---|
| 11 | OnDestroy = FormDestroy
|
|---|
| 12 | LCLVersion = '2.0.2.0'
|
|---|
| 13 | object MemoSource: TMemo
|
|---|
| 14 | Left = 10
|
|---|
| 15 | Height = 459
|
|---|
| 16 | Top = 10
|
|---|
| 17 | Width = 829
|
|---|
| 18 | Anchors = [akTop, akLeft, akRight, akBottom]
|
|---|
| 19 | Lines.Strings = (
|
|---|
| 20 | ' // Print Hello world text'
|
|---|
| 21 | ' LDI R1, HelloWorld'
|
|---|
| 22 | ' LDI R2, 13'
|
|---|
| 23 | ' CALL Print'
|
|---|
| 24 | ' HALT'
|
|---|
| 25 | ''
|
|---|
| 26 | 'Print:'
|
|---|
| 27 | ' PUSH R3'
|
|---|
| 28 | ' PUSH R2'
|
|---|
| 29 | ' PUSH R1'
|
|---|
| 30 | 'PrintLoop:'
|
|---|
| 31 | ' LDM R3, R1'
|
|---|
| 32 | ' OUT (0), R3'
|
|---|
| 33 | ' INC R1'
|
|---|
| 34 | ' DEC R2'
|
|---|
| 35 | ' TESTNZ R2'
|
|---|
| 36 | ' JRC PrintLoop'
|
|---|
| 37 | ' POP R1'
|
|---|
| 38 | ' POP R2'
|
|---|
| 39 | ' POP R3'
|
|---|
| 40 | ' RET'
|
|---|
| 41 | 'HelloWorld:'
|
|---|
| 42 | ' STRING ''Hello_World!'''
|
|---|
| 43 | )
|
|---|
| 44 | ParentFont = False
|
|---|
| 45 | ScrollBars = ssAutoBoth
|
|---|
| 46 | TabOrder = 0
|
|---|
| 47 | end
|
|---|
| 48 | object ButtonLoadFromFile: TButton
|
|---|
| 49 | Left = 10
|
|---|
| 50 | Height = 37
|
|---|
| 51 | Top = 603
|
|---|
| 52 | Width = 163
|
|---|
| 53 | Anchors = [akLeft, akBottom]
|
|---|
| 54 | Caption = 'Load from file'
|
|---|
| 55 | OnClick = ButtonLoadFromFileClick
|
|---|
| 56 | ParentFont = False
|
|---|
| 57 | TabOrder = 1
|
|---|
| 58 | end
|
|---|
| 59 | object ButtonSaveToFile: TButton
|
|---|
| 60 | Left = 192
|
|---|
| 61 | Height = 37
|
|---|
| 62 | Top = 603
|
|---|
| 63 | Width = 154
|
|---|
| 64 | Anchors = [akLeft, akBottom]
|
|---|
| 65 | Caption = 'Save to file'
|
|---|
| 66 | OnClick = ButtonSaveToFileClick
|
|---|
| 67 | ParentFont = False
|
|---|
| 68 | TabOrder = 2
|
|---|
| 69 | end
|
|---|
| 70 | object ButtonCompile: TButton
|
|---|
| 71 | Left = 356
|
|---|
| 72 | Height = 37
|
|---|
| 73 | Top = 603
|
|---|
| 74 | Width = 151
|
|---|
| 75 | Anchors = [akLeft, akBottom]
|
|---|
| 76 | Caption = 'Compile'
|
|---|
| 77 | OnClick = ButtonCompileClick
|
|---|
| 78 | ParentFont = False
|
|---|
| 79 | TabOrder = 3
|
|---|
| 80 | end
|
|---|
| 81 | object MemoMessages: TMemo
|
|---|
| 82 | Left = 10
|
|---|
| 83 | Height = 116
|
|---|
| 84 | Top = 483
|
|---|
| 85 | Width = 826
|
|---|
| 86 | Anchors = [akLeft, akRight, akBottom]
|
|---|
| 87 | ParentFont = False
|
|---|
| 88 | ReadOnly = True
|
|---|
| 89 | ScrollBars = ssAutoBoth
|
|---|
| 90 | TabOrder = 4
|
|---|
| 91 | end
|
|---|
| 92 | object OpenDialog1: TOpenDialog
|
|---|
| 93 | left = 137
|
|---|
| 94 | top = 182
|
|---|
| 95 | end
|
|---|
| 96 | object SaveDialog1: TSaveDialog
|
|---|
| 97 | left = 455
|
|---|
| 98 | top = 182
|
|---|
| 99 | end
|
|---|
| 100 | end
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.