mirror of
https://github.com/Qortal/AT.git
synced 2025-01-30 02:42:14 +00:00
271 lines
10 KiB
HTML
271 lines
10 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html>
|
|
<head>
|
|
<title>CIYAM AT - Test for AT instruction code 0x0f (SET_IDX)</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
<meta name="copyright" content="Copyright 2015 CIYAM Developers"/>
|
|
|
|
<link rel="stylesheet" href="document.css" type="text/css"/>
|
|
</head>
|
|
|
|
<div id="content">
|
|
<div id="header">
|
|
<div id="appname"><a href="//ciyam.org/at">AT</a></div>
|
|
<h3 class="right-top">Test for AT instruction code 0x0f (SET_IDX)</h3>
|
|
</div>
|
|
|
|
<div id="main">
|
|
<div id="text">
|
|
<pre>
|
|
Test for AT instruction code 0x0f (SET_IDX)
|
|
-------------------------------------------
|
|
|
|
For each test the assembly and machine code are listed as is the data dump or expected error if test case has
|
|
been created specifically to fail (with a data dump if any data was expected to have changed before the error
|
|
occurred).
|
|
|
|
A summary of the tests follows:
|
|
Test 1 - Check some basic usage
|
|
Test 2 - Check some basic usage (continue)
|
|
Test 3 - Addr1 out of range (addr2+addr3)
|
|
Test 4 - Addr2 out of range
|
|
Test 5 - Addr3 out of range
|
|
|
|
Assembly Code (Test 1):
|
|
-----------------------
|
|
|
|
00000000* SET @00000000 #0000000000000000
|
|
0000000d SET @00000001 #0000000011111111
|
|
0000001a SET @00000002 #0000000000000001
|
|
00000027 SET @00000003 $($00000000+$00000002)
|
|
00000034 SET @00000004 #0000000000000004
|
|
00000041 SET @00000005 #0000000011111111
|
|
0000004e SET @00000006 #0000000000000001
|
|
0000005b SET @00000007 $($00000004+$00000006)
|
|
00000068 SET @00000008 #0000000000000008
|
|
00000075 SET @00000009 #0000000011111111
|
|
00000082 SET @0000000a #0000000000000001
|
|
0000008f SET @0000000b $($00000008+$0000000a)
|
|
0000009c SET @0000000c #000000000000000c
|
|
000000a9 SET @0000000d #0000000011111111
|
|
000000b6 SET @0000000e #0000000000000001
|
|
000000c3 SET @0000000f $($0000000c+$0000000e)
|
|
000000d0 SET @00000010 #0000000000000010
|
|
000000dd SET @00000011 #0000000011111111
|
|
000000ea SET @00000012 #0000000000000001
|
|
000000f7 SET @00000013 $($00000010+$00000012)
|
|
00000104 SET @00000014 #0000000000000014
|
|
00000111 SET @00000015 #0000000011111111
|
|
0000011e SET @00000016 #0000000000000001
|
|
0000012b SET @00000017 $($00000014+$00000016)
|
|
00000138 SET @00000018 #0000000000000018
|
|
00000145 SET @00000019 #0000000011111111
|
|
00000152 SET @0000001a #0000000000000001
|
|
0000015f SET @0000001b $($00000018+$0000001a)
|
|
0000016c FIN
|
|
|
|
Machine Code (Test 1):
|
|
----------------------
|
|
|
|
0100000000000000000000000001010000001111111100000000010200000001000000000000000f030000000000000002000000
|
|
0104000000040000000000000001050000001111111100000000010600000001000000000000000f070000000400000006000000
|
|
0108000000080000000000000001090000001111111100000000010a00000001000000000000000f0b000000080000000a000000
|
|
010c0000000c00000000000000010d0000001111111100000000010e00000001000000000000000f0f0000000c0000000e000000
|
|
0110000000100000000000000001110000001111111100000000011200000001000000000000000f130000001000000012000000
|
|
0114000000140000000000000001150000001111111100000000011600000001000000000000000f170000001400000016000000
|
|
0118000000180000000000000001190000001111111100000000011a00000001000000000000000f1b000000180000001a000000
|
|
28
|
|
|
|
Data Dump (Test 1):
|
|
-------------------
|
|
|
|
00000000 00 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000010 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000020 04 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000030 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000040 08 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000050 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000060 0c 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000070 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000080 10 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000090 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000000a0 14 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000000b0 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000000c0 18 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000000d0 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000001c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
|
|
Assembly Code (Test 2):
|
|
-----------------------
|
|
|
|
00000000* SET @0000001c #000000000000001c
|
|
0000000d SET @0000001d #0000000011111111
|
|
0000001a SET @0000001e #0000000000000001
|
|
00000027 SET @0000001f $($0000001c+$0000001e)
|
|
00000034 SET @00000020 #0000000000000020
|
|
00000041 SET @00000021 #0000000011111111
|
|
0000004e SET @00000022 #0000000000000001
|
|
0000005b SET @00000023 $($00000020+$00000022)
|
|
00000068 SET @00000024 #0000000000000024
|
|
00000075 SET @00000025 #0000000011111111
|
|
00000082 SET @00000026 #0000000000000001
|
|
0000008f SET @00000027 $($00000024+$00000026)
|
|
0000009c SET @00000028 #0000000000000028
|
|
000000a9 SET @00000029 #0000000011111111
|
|
000000b6 SET @0000002a #0000000000000001
|
|
000000c3 SET @0000002b $($00000028+$0000002a)
|
|
000000d0 SET @0000002c #000000000000002c
|
|
000000dd SET @0000002d #0000000011111111
|
|
000000ea SET @0000002e #0000000000000001
|
|
000000f7 SET @0000002f $($0000002c+$0000002e)
|
|
00000104 SET @00000030 #0000000000000030
|
|
00000111 SET @00000031 #0000000011111111
|
|
0000011e SET @00000032 #0000000000000001
|
|
0000012b SET @00000033 $($00000030+$00000032)
|
|
00000138 SET @00000034 #0000000000000034
|
|
00000145 SET @00000035 #0000000011111111
|
|
00000152 SET @00000036 #0000000000000001
|
|
0000015f SET @00000037 $($00000034+$00000036)
|
|
0000016c SET @00000038 #0000000000000038
|
|
00000179 SET @00000039 #0000000011111111
|
|
00000186 SET @0000003a #0000000000000001
|
|
00000193 SET @0000003b $($0000003a+$00000038)
|
|
000001a0 FIN
|
|
|
|
Machine Code (Test 2):
|
|
----------------------
|
|
|
|
011c0000001c00000000000000011d0000001111111100000000011e00000001000000000000000f1f0000001c0000001e000000
|
|
0120000000200000000000000001210000001111111100000000012200000001000000000000000f230000002000000022000000
|
|
0124000000240000000000000001250000001111111100000000012600000001000000000000000f270000002400000026000000
|
|
0128000000280000000000000001290000001111111100000000012a00000001000000000000000f2b000000280000002a000000
|
|
012c0000002c00000000000000012d0000001111111100000000012e00000001000000000000000f2f0000002c0000002e000000
|
|
0130000000300000000000000001310000001111111100000000013200000001000000000000000f330000003000000032000000
|
|
0134000000340000000000000001350000001111111100000000013600000001000000000000000f370000003400000036000000
|
|
0138000000380000000000000001390000001111111100000000013a00000001000000000000000f3b0000003a00000038000000
|
|
28
|
|
|
|
Data Dump (Test 2):
|
|
-------------------
|
|
|
|
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000000e0 1c 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000000f0 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000100 20 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000110 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000120 24 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000130 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000140 28 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000150 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000160 2c 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000170 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000180 30 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
00000190 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000001a0 34 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000001b0 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000001c0 38 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000001d0 01 00 00 00 00 00 00 00 11 11 11 11 00 00 00 00
|
|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
|
|
Assembly Code (Test 3):
|
|
-----------------------
|
|
|
|
00000000* SET @00000000 #000000000000003f
|
|
0000000d SET @00000001 #0000000000000001
|
|
0000001a SET @00000002 $($00000001+$00000000)
|
|
00000027 FIN
|
|
|
|
Machine Code (Test 3):
|
|
-----------------------
|
|
|
|
01000000003f00000000000000010100000001000000000000000f02000000010000000000000028
|
|
|
|
Runtime Error (Test 3):
|
|
-----------------------
|
|
|
|
error: overflow
|
|
|
|
Assembly Code (Test 4):
|
|
-----------------------
|
|
|
|
00000000 SET @00000000 #0000000000000040
|
|
0000000d SET @00000001 #0000000000000001
|
|
0000001a* SET @00000002 $($00000001+$00000000)
|
|
00000027 FIN
|
|
|
|
Machine Code (Test 4):
|
|
----------------------
|
|
|
|
01000000004000000000000000010100000001000000000000000f02000000010000000000000028
|
|
|
|
Runtime Error (Test 4):
|
|
-----------------------
|
|
|
|
error: overflow
|
|
|
|
Assembly Code (Test 5):
|
|
-----------------------
|
|
|
|
00000000* SET @00000000 #000000000000003a
|
|
0000000d SET @00000001 #0000000000000040
|
|
0000001a SET @00000002 $($00000001+$00000000)
|
|
00000027 FIN
|
|
|
|
Machine Code (Test 5):
|
|
----------------------
|
|
|
|
01000000003a00000000000000010100000040000000000000000f02000000010000000000000028
|
|
|
|
Runtime Error (Test 5):
|
|
-----------------------
|
|
|
|
error: overflow
|
|
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="visibility: visible;" id="footer">
|
|
<p>
|
|
<div class="footer-icon"><a target="_blank" href="//ciyam.org/"><img src="logo-gryscl-128.png" /></a></div>
|
|
© 2012-2015 CIYAM Developers
|
|
</p>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|
|
|