Changeset 62
- Timestamp:
- Aug 1, 2024, 11:00:58 PM (4 months ago)
- Location:
- branches/ByteArray
- Files:
-
- 14 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ByteArray/ByteArray.lpi
r59 r62 241 241 <ResourceBaseClass Value="Form"/> 242 242 </Unit> 243 <Unit> 244 <Filename Value="CpuInstructions.txt"/> 245 <IsPartOfProject Value="True"/> 246 </Unit> 247 <Unit> 248 <Filename Value="Asm/Api.asm"/> 249 <IsPartOfProject Value="True"/> 250 </Unit> 251 <Unit> 252 <Filename Value="Asm/Combined.asm"/> 253 <IsPartOfProject Value="True"/> 254 </Unit> 255 <Unit> 256 <Filename Value="Asm/Io.asm"/> 257 <IsPartOfProject Value="True"/> 258 </Unit> 259 <Unit> 260 <Filename Value="Asm/Kernel.asm"/> 261 <IsPartOfProject Value="True"/> 262 </Unit> 263 <Unit> 264 <Filename Value="Asm/SysCalls.asm"/> 265 <IsPartOfProject Value="True"/> 266 </Unit> 267 <Unit> 268 <Filename Value="Asm/Apps/Beep.asm"/> 269 <IsPartOfProject Value="True"/> 270 </Unit> 271 <Unit> 272 <Filename Value="Asm/Apps/Halt.asm"/> 273 <IsPartOfProject Value="True"/> 274 </Unit> 275 <Unit> 276 <Filename Value="Asm/Apps/Shell.asm"/> 277 <IsPartOfProject Value="True"/> 278 </Unit> 279 <Unit> 280 <Filename Value="Asm/Apps/Write.asm"/> 281 <IsPartOfProject Value="True"/> 282 </Unit> 283 <Unit> 284 <Filename Value="VarInt.pas"/> 285 <IsPartOfProject Value="True"/> 286 </Unit> 243 287 </Units> 244 288 </ProjectOptions> -
branches/ByteArray/ByteArray.lpr
r58 r62 13 13 Storage, DeviceMapper, Machine, Disassembler, Instructions, Parser, Message, 14 14 Assembler, Serial, Mouse, FormSourceEditor, FormMessages, FormMemory, 15 FormStorage, Common, FormSettings, Core, FormDebugger 15 FormStorage, Common, FormSettings, Core, FormDebugger, VarInt 16 16 { you can add units after this }; 17 17 -
branches/ByteArray/Cpu.pas
r59 r62 806 806 end. 807 807 808 809 32-bit810 811 LD A, B812 LD A1, B1813 LD A2, $aabb814 LD A2, (B2)815 LD A2, ($ffff)816 LD A.2, ($00ff.2)817 LD.2.2 A2, ($ffff)818 JR.128 $ff819 LD (A2), (B2)820 LD (n.1), (n.1)821 LD (n.1), (n.1)822 823 LD A, B824 LD2 A, B825 LD A2, B2826 LD.2 A, n827 LD A, (B)828 LD.1 A, (n)829 IN.1 A, (n)830 IN.1 A, (B)831 JP n832 JP.1 n833 JR n834 JR.1 n835 PUSH A836 PUSH.1 A837 PUSH.4 A838 PUSH.128 A839 RET840 LD.2 (A), (B)841 INC A842 LD.1 A, n843 SHL.2 A844 LD.1 A, n845 AND.2 A, n846 LD.2 B, A847 IN C, (B)848 IN.d1.a1 C, (B)849 CALL n850 CALL.4 n851 LD A, (B + n)852 LD.1.2.1 A, (B + n)853 LD.d1.a2.r1 A, (B + n)854 LD A, (B + n)855 LDIR A, B, C856 LDIR.4 (A), (B), C857 LDI (A), (B), C858 SET.4 A, 20859 860 - bit index 2048 (256 * 8) (8 + 3) bits = 2^11861 862 LD R0, R1863 LD2 R0, R1864 LD.2 R0, R1865 LD:2 R0, R1866 LD D2, R0, R1867 LD D2, A16, R0, (R1)868 LD D2:A16: R0, (R1)869 RET870 RET2871 RET.2872 RET:2873 RET A2874 PUSH R0875 PUSH2 R0876 PUSH.2 R0877 PUSH:2 R0878 PUSH D2, R0879 PUSH D2:R0880 PUSH R0.2881 PUSH R0:2882 LD (R0), (R2)883 LD D1, A2, (R0), (R2)884 LDIR (R0), (R1), R2885 LDIR D1, A2, (R0), (R1), R2886 LDI887 OUT (R0), R1888 OUT D1, (R0), R1889 OUT D1, A2, (R0), R1890 891 892 893 LD A, TEXT894 CALL PRINT895 896 :PRINT897 PUSH B898 :PRINT_START899 LD B, (A)900 TEST B901 JR Z, PRINT_END902 OUT (n), B903 INC A904 JR PRINT_START905 :PRINT_END906 POP B907 RET908 -
branches/ByteArray/Forms/FormAssembler.lfm
r50 r62 1 1 object FormAssembler: TFormAssembler 2 Left = 72 82 Left = 727 3 3 Height = 719 4 Top = 3 844 Top = 360 5 5 Width = 1106 6 6 Caption = 'Assembler' … … 8 8 ClientWidth = 1106 9 9 DesignTimePPI = 144 10 OnCreate = FormCreate 11 OnDestroy = FormDestroy 10 12 LCLVersion = '2.2.6.0' 11 13 inline SynEdit1: TSynEdit … … 28 30 RightGutter.Width = 0 29 31 RightGutter.MouseActions = <> 32 Highlighter = SynAnySyn1 30 33 Keystrokes = < 31 34 item … … 513 516 object SynAnySyn1: TSynAnySyn 514 517 Enabled = False 515 Comments = [] 518 CommentAttri.Foreground = clGreen 519 Comments = [csAsmStyle] 516 520 DetectPreprocessor = False 517 521 IdentifierChars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz' 522 KeyAttri.Foreground = clYellow 523 NumberAttri.Foreground = clFuchsia 518 524 Markup = False 519 525 Entity = False -
branches/ByteArray/Forms/FormAssembler.pas
r48 r62 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, AsyncProcess,SynEdit,7 SynHighlighterAny, SynHighlighterMulti, Common.FormEx ;6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, SynEdit, 7 SynHighlighterAny, SynHighlighterMulti, Common.FormEx, Generics.Collections; 8 8 9 9 type … … 14 14 SynAnySyn1: TSynAnySyn; 15 15 SynEdit1: TSynEdit; 16 procedure FormCreate(Sender: TObject); 17 procedure FormDestroy(Sender: TObject); 18 private 16 19 public 17 20 procedure Select(Position: TPoint); … … 23 26 {$R *.lfm} 24 27 28 uses 29 Instructions; 30 25 31 { TFormAssembler } 32 33 procedure TFormAssembler.FormCreate(Sender: TObject); 34 var 35 InstructionInfos: TInstructionInfos; 36 Keywords: TList<string>; 37 I: Integer; 38 begin 39 Keywords := TList<string>.Create; 40 InstructionInfos := TInstructionInfos.Create; 41 InstructionInfos.Init; 42 for I := 0 to InstructionInfos.Count - 1 do 43 if not Keywords.Contains(InstructionInfos[I].Name) then 44 Keywords.Add(InstructionInfos[I].Name); 45 for I := 0 to Keywords.Count - 1 do 46 SynAnySyn1.KeyWords.Add(Keywords[I]); 47 SynAnySyn1.KeyWords.Add('VAR'); 48 SynAnySyn1.KeyWords.Add('DB'); 49 SynAnySyn1.KeyWords.Add('ORG'); 50 FreeAndNil(InstructionInfos); 51 FreeAndNil(Keywords); 52 end; 53 54 procedure TFormAssembler.FormDestroy(Sender: TObject); 55 begin 56 end; 26 57 27 58 procedure TFormAssembler.Select(Position: TPoint); -
branches/ByteArray/Languages/ByteArray.cs.po
r59 r62 188 188 msgstr "Úložiště" 189 189 190 #: tformassembler.caption 191 msgid "Assembler" 192 msgstr "" 193 190 194 #: tformdebugger.caption 191 195 msgctxt "tformdebugger.caption" … … 383 387 msgid "ASCII" 384 388 msgstr "ASCII" 389 -
branches/ByteArray/Languages/ByteArray.pot
r59 r62 178 178 msgstr "" 179 179 180 #: tformassembler.caption 181 msgid "Assembler" 182 msgstr "" 183 180 184 #: tformdebugger.caption 181 185 msgctxt "tformdebugger.caption"
Note:
See TracChangeset
for help on using the changeset viewer.