- Timestamp:
- Nov 3, 2023, 11:15:31 AM (13 months ago)
- Location:
- branches/ByteArray
- Files:
-
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ByteArray
- Property svn:ignore
-
old new 6 6 ByteArray.res 7 7 ByteArray.dbg 8 Storage.dat
-
- Property svn:ignore
-
branches/ByteArray/BigInt.pas
r47 r51 184 184 class operator TBigInt.Implicit(A: TBigInt): UInt64; 185 185 begin 186 if A.Size = 8 then Result := PUInt64(@A.FData[0])^ 187 else raise Exception.Create(SUnsupportedByteSize); 186 if A.Size = 1 then Result := PUInt8(@A.FData[0])^ 187 else if A.Size = 2 then Result := PUInt16(@A.FData[0])^ 188 else if A.Size = 4 then Result := PUInt32(@A.FData[0])^ 189 else if A.Size = 8 then Result := PUInt64(@A.FData[0])^ 190 else raise Exception.Create(SUnsupportedByteSize); 188 191 end; 189 192 190 193 class operator TBigInt.Implicit(A: TBigInt): Int64; 191 194 begin 192 if A.Size = 8 then Result := PInt64(@A.FData[0])^ 193 else raise Exception.Create(SUnsupportedByteSize); 195 if A.Size = 1 then Result := PInt8(@A.FData[0])^ 196 else if A.Size = 2 then Result := PInt16(@A.FData[0])^ 197 else if A.Size = 4 then Result := PInt32(@A.FData[0])^ 198 else if A.Size = 8 then Result := PInt64(@A.FData[0])^ 199 else raise Exception.Create(SUnsupportedByteSize); 194 200 end; 195 201 -
branches/ByteArray/Devices/Memory.pas
r50 r51 71 71 begin 72 72 Result := Read(Position, ASize); 73 Inc(Position, ASize); 73 74 end; 74 75 … … 87 88 begin 88 89 Write(Position, ASize, Value); 90 Inc(Position, ASize); 89 91 end; 90 92 -
branches/ByteArray/Devices/Storage.pas
r50 r51 19 19 FFile: TFileStream; 20 20 Position: Integer; 21 function ReadByte(Address: TBigInt): Byte; 21 22 function Read(Address: TBigInt; Size: TBigIntSize): TBigInt; 22 23 procedure Write(Address: TBigInt; Size: TBigIntSize; Value: TBigInt); … … 53 54 begin 54 55 FFile.Size := AValue; 56 end; 57 58 function TStorage.ReadByte(Address: TBigInt): Byte; 59 begin 60 Result := 0; 61 FFile.Position := Address; 62 FFile.Read(Result, 1); 55 63 end; 56 64 -
branches/ByteArray/Forms/FormStorage.lfm
r50 r51 13 13 Left = 17 14 14 Height = 721 15 Top = 1 915 Top = 16 16 16 Width = 1127 17 17 Anchors = [akTop, akLeft, akRight, akBottom] … … 19 19 item 20 20 Caption = 'Address' 21 Width = 1 0021 Width = 120 22 22 end 23 23 item 24 24 Caption = 'Data' 25 Width = 1012 25 Width = 643 26 end 27 item 28 Caption = 'ASCII' 29 Width = 349 26 30 end> 27 31 OwnerData = True -
branches/ByteArray/Forms/FormStorage.lrj
r50 r51 2 2 {"hash":179734405,"name":"tformstorage.caption","sourcebytes":[83,116,111,114,97,103,101],"value":"Storage"}, 3 3 {"hash":128683235,"name":"tformstorage.listview1.columns[0].caption","sourcebytes":[65,100,100,114,101,115,115],"value":"Address"}, 4 {"hash":305313,"name":"tformstorage.listview1.columns[1].caption","sourcebytes":[68,97,116,97],"value":"Data"} 4 {"hash":305313,"name":"tformstorage.listview1.columns[1].caption","sourcebytes":[68,97,116,97],"value":"Data"}, 5 {"hash":4618201,"name":"tformstorage.listview1.columns[2].caption","sourcebytes":[65,83,67,73,73],"value":"ASCII"} 5 6 ]} -
branches/ByteArray/Forms/FormStorage.pas
r50 r51 44 44 Text := ''; 45 45 for I := 0 to ItemsPerLine - 1 do begin 46 One := Storage.Read (Item.Index * ItemsPerLine + I, 1);46 One := Storage.ReadByte(Item.Index * ItemsPerLine + I); 47 47 Line := Line + IntToHex(One, 2) + ' '; 48 48 if One >= 32 then Text := Text + Char(One) -
branches/ByteArray/Languages
-
Property svn:ignore
set to
*.mo
-
Property svn:ignore
set to
-
branches/ByteArray/Languages/ByteArray.cs.po
r50 r51 17 17 18 18 #: device.sconsole 19 #, fuzzy20 19 msgctxt "device.sconsole" 21 20 msgid "Console" … … 24 23 #: device.skeyboard 25 24 msgid "Keyboard" 26 msgstr " "25 msgstr "Klávesnice" 27 26 28 27 #: device.smouse 29 28 msgid "Mouse" 30 msgstr " "29 msgstr "Myš" 31 30 32 31 #: device.snone 33 32 msgid "None" 34 msgstr " "33 msgstr "Žádné" 35 34 36 35 #: device.sscreen 37 36 msgctxt "device.sscreen" 38 37 msgid "Screen" 39 msgstr " "38 msgstr "Obrazovka" 40 39 41 40 #: device.sstorage 42 41 msgctxt "device.sstorage" 43 42 msgid "Storage" 44 msgstr " "43 msgstr "Úložiště" 45 44 46 45 #: device.stimer 47 46 msgid "Timer" 48 msgstr " "47 msgstr "Časovač" 49 48 50 49 #: memory.soutofrange … … 58 57 59 58 #: tformmain.aconsole.caption 60 #, fuzzy61 59 msgctxt "tformmain.aconsole.caption" 62 60 msgid "Console" … … 90 88 91 89 #: tformmain.ascreen.caption 92 #, fuzzy93 90 msgctxt "tformmain.ascreen.caption" 94 91 msgid "Screen" … … 101 98 102 99 #: tformmain.astorage.caption 103 #, fuzzy104 100 msgctxt "tformmain.astorage.caption" 105 101 msgid "Storage" … … 124 120 125 121 #: tformmemory.caption 126 #, fuzzy127 122 msgctxt "tformmemory.caption" 128 123 msgid "Memory" … … 132 127 msgctxt "tformmemory.listviewmemory.columns[0].caption" 133 128 msgid "Address" 134 msgstr " "129 msgstr "Adresa" 135 130 136 131 #: tformmemory.listviewmemory.columns[1].caption 137 132 msgctxt "tformmemory.listviewmemory.columns[1].caption" 138 133 msgid "Data" 139 msgstr " "134 msgstr "Data" 140 135 141 136 #: tformmemory.listviewmemory.columns[2].caption 137 msgctxt "tformmemory.listviewmemory.columns[2].caption" 142 138 msgid "ASCII" 143 msgstr " "139 msgstr "ASCII" 144 140 145 141 #: tformsourceeditor.aclose.caption … … 223 219 msgctxt "tformstorage.caption" 224 220 msgid "Storage" 225 msgstr " "221 msgstr "Úložiště" 226 222 227 223 #: tformstorage.listview1.columns[0].caption 228 224 msgctxt "tformstorage.listview1.columns[0].caption" 229 225 msgid "Address" 230 msgstr " "226 msgstr "Adresa" 231 227 232 228 #: tformstorage.listview1.columns[1].caption 233 229 msgctxt "tformstorage.listview1.columns[1].caption" 234 230 msgid "Data" 235 msgstr "" 236 231 msgstr "Data" 232 233 #: tformstorage.listview1.columns[2].caption 234 msgctxt "tformstorage.listview1.columns[2].caption" 235 msgid "ASCII" 236 msgstr "ASCII" -
branches/ByteArray/Languages/ByteArray.pot
r50 r51 125 125 126 126 #: tformmemory.listviewmemory.columns[2].caption 127 msgctxt "tformmemory.listviewmemory.columns[2].caption" 127 128 msgid "ASCII" 128 129 msgstr "" … … 220 221 msgstr "" 221 222 223 #: tformstorage.listview1.columns[2].caption 224 msgctxt "tformstorage.listview1.columns[2].caption" 225 msgid "ASCII" 226 msgstr "" 227
Note:
See TracChangeset
for help on using the changeset viewer.