mirror of
https://github.com/Qortal/AT.git
synced 2025-01-30 10:52:14 +00:00
288 lines
10 KiB
HTML
288 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 0x0e (SET_IND)</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 0x0e (SET_IND)</h3>
|
||
|
</div>
|
||
|
|
||
|
<div id="main">
|
||
|
<div id="text">
|
||
|
<pre>
|
||
|
Test for AT instruction code 0x0e (SET_IND)
|
||
|
-------------------------------------------
|
||
|
|
||
|
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 (odd addresses).
|
||
|
Test 2 - Check full address range.
|
||
|
Test 3 - Copying to address out of range.
|
||
|
Test 4 - Copying from address out of range.
|
||
|
Test 5 - Copying to address out of range.
|
||
|
Test 6 - Copying from address out of range.
|
||
|
|
||
|
Assembly Code (Test 1):
|
||
|
-----------------------
|
||
|
|
||
|
00000000* SET @00000000 #000000000000002f
|
||
|
0000000d SET @0000002f #1111111111111111
|
||
|
0000001a SET @00000001 $($00000000)
|
||
|
00000023 SET @00000003 $($00000000)
|
||
|
0000002c SET @00000005 $($00000000)
|
||
|
00000035 SET @00000007 $($00000000)
|
||
|
0000003e SET @00000009 $($00000000)
|
||
|
00000047 SET @0000000b $($00000000)
|
||
|
00000050 SET @0000000d $($00000000)
|
||
|
00000059 SET @0000000f $($00000000)
|
||
|
00000062 SET @00000011 $($00000000)
|
||
|
0000006b SET @00000013 $($00000000)
|
||
|
00000074 SET @00000015 $($00000000)
|
||
|
0000007d SET @00000017 $($00000000)
|
||
|
00000086 SET @00000019 $($00000000)
|
||
|
0000008f SET @0000001b $($00000000)
|
||
|
00000098 SET @0000001d $($00000000)
|
||
|
000000a1 SET @0000001f $($00000000)
|
||
|
000000aa SET @00000021 $($00000000)
|
||
|
000000b3 SET @00000023 $($00000000)
|
||
|
000000bc SET @00000025 $($00000000)
|
||
|
000000c5 SET @00000027 $($00000000)
|
||
|
000000ce SET @00000029 $($00000000)
|
||
|
000000d7 SET @0000002b $($00000000)
|
||
|
000000e0 SET @0000002d $($00000000)
|
||
|
000000e9 SET @0000002f $($00000000)
|
||
|
000000f2 SET @00000031 $($00000000)
|
||
|
000000fb SET @00000033 $($00000000)
|
||
|
00000104 SET @00000035 $($00000000)
|
||
|
0000010d SET @00000037 $($00000000)
|
||
|
00000116 SET @00000039 $($00000000)
|
||
|
0000011f SET @0000003b $($00000000)
|
||
|
00000128 SET @0000003d $($00000000)
|
||
|
00000131 SET @0000003f $($00000000)
|
||
|
0000013a FIN
|
||
|
|
||
|
Machine Code (Test 1):
|
||
|
----------------------
|
||
|
|
||
|
01000000002f00000000000000012f00000011111111111111110e01000000000000000e03000000000000000e05000000000000
|
||
|
000e07000000000000000e09000000000000000e0b000000000000000e0d000000000000000e0f000000000000000e1100000000
|
||
|
0000000e13000000000000000e15000000000000000e17000000000000000e19000000000000000e1b000000000000000e1d0000
|
||
|
00000000000e1f000000000000000e21000000000000000e23000000000000000e25000000000000000e27000000000000000e29
|
||
|
000000000000000e2b000000000000000e2d000000000000000e2f000000000000000e31000000000000000e3300000000000000
|
||
|
0e35000000000000000e37000000000000000e39000000000000000e3b000000000000000e3d000000000000000e3f0000000000
|
||
|
000028
|
||
|
|
||
|
Data Dump (Test 1):
|
||
|
-------------------
|
||
|
|
||
|
00000000 2f 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000010 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000020 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000030 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000040 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000050 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000060 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000070 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000080 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000090 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000000a0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000000b0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000000c0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000000d0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000000e0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000000f0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000100 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000110 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000120 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000130 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000140 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000150 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000160 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000170 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000180 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
00000190 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000001a0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000001b0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000001c0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000001d0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000001e0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
000001f0 00 00 00 00 00 00 00 00 11 11 11 11 11 11 11 11
|
||
|
|
||
|
Assembly Code (Test 2):
|
||
|
-----------------------
|
||
|
|
||
|
00000000* SET @00000000 #0000000000000022
|
||
|
0000000d SET @00000002 $($00000000)
|
||
|
00000016 SET @00000004 $($00000002)
|
||
|
0000001f SET @00000006 $($00000004)
|
||
|
00000028 SET @00000008 $($00000006)
|
||
|
00000031 SET @0000000a $($00000008)
|
||
|
0000003a SET @0000000c $($0000000a)
|
||
|
00000043 SET @0000000e $($0000000c)
|
||
|
0000004c SET @00000010 $($0000000e)
|
||
|
00000055 SET @00000012 $($00000010)
|
||
|
0000005e SET @00000014 $($00000012)
|
||
|
00000067 SET @00000016 $($00000014)
|
||
|
00000070 SET @00000018 $($00000016)
|
||
|
00000079 SET @0000001a $($00000018)
|
||
|
00000082 SET @0000001c $($0000001a)
|
||
|
0000008b SET @0000001e $($0000001c)
|
||
|
00000094 SET @00000020 $($0000001e)
|
||
|
0000009d SET @00000022 $($00000020)
|
||
|
000000a6 SET @00000024 $($00000022)
|
||
|
000000af SET @00000026 $($00000024)
|
||
|
000000b8 SET @00000028 $($00000026)
|
||
|
000000c1 SET @0000002a $($00000028)
|
||
|
000000ca SET @0000002c $($0000002a)
|
||
|
000000d3 SET @0000002e $($0000002c)
|
||
|
000000dc SET @00000030 $($0000002e)
|
||
|
000000e5 SET @00000032 $($00000030)
|
||
|
000000ee SET @00000034 $($00000032)
|
||
|
000000f7 SET @00000036 $($00000034)
|
||
|
00000100 SET @00000038 $($00000036)
|
||
|
00000109 SET @0000003a $($00000038)
|
||
|
00000112 SET @0000003c $($0000003a)
|
||
|
0000011b SET @0000003e $($0000003c)
|
||
|
00000124 FIN
|
||
|
|
||
|
Machine Code (Test 2):
|
||
|
----------------------
|
||
|
|
||
|
010000000022000000000000000e02000000000000000e04000000020000000e06000000040000000e08000000060000000e0a00
|
||
|
0000080000000e0c0000000a0000000e0e0000000c0000000e100000000e0000000e12000000100000000e14000000120000000e
|
||
|
16000000140000000e18000000160000000e1a000000180000000e1c0000001a0000000e1e0000001c0000000e200000001e0000
|
||
|
000e22000000200000000e24000000220000000e26000000240000000e28000000260000000e2a000000280000000e2c0000002a
|
||
|
0000000e2e0000002c0000000e300000002e0000000e32000000300000000e34000000320000000e36000000340000000e380000
|
||
|
00360000000e3a000000380000000e3c0000003a0000000e3e0000003c00000028
|
||
|
|
||
|
Data Dump (Test 2):
|
||
|
-------------------
|
||
|
|
||
|
00000000 22 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 22 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 22 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 22 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 22 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 22 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 22 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 22 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 22 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 22 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 22 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 22 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 22 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 22 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 22 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 22 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* IDN @00000000 #ffffffffffffffff
|
||
|
0000000d IDN @00000040 @00000000
|
||
|
0000001a FIN
|
||
|
|
||
|
Machine Code (Test 3):
|
||
|
-----------------------
|
||
|
|
||
|
0100000000ffffffffffffffff0e400000000000000028
|
||
|
|
||
|
Runtime Error (Test 3):
|
||
|
-----------------------
|
||
|
|
||
|
error: overflow
|
||
|
|
||
|
Assembly Code (Test 4):
|
||
|
-----------------------
|
||
|
|
||
|
00000000* SET @00000000 #ffffffffffffffff
|
||
|
0000000d SET @00000040 $($00000000)
|
||
|
00000016 FIN
|
||
|
|
||
|
Machine Code (Test 4):
|
||
|
----------------------
|
||
|
|
||
|
0100000000ffffffffffffffff0e000000004000000028
|
||
|
|
||
|
Runtime Error (Test 4):
|
||
|
-----------------------
|
||
|
|
||
|
error: overflow
|
||
|
|
||
|
Assembly Code (Test 5):
|
||
|
-----------------------
|
||
|
|
||
|
00000000* SET @00000000 #ffffffffffffffff
|
||
|
0000000d SET @ffffffff $($00000000)
|
||
|
00000016 FIN
|
||
|
|
||
|
Machine Code (Test 5):
|
||
|
----------------------
|
||
|
|
||
|
0100000000ffffffffffffffff0effffffff0000000028
|
||
|
|
||
|
Runtime Error (Test 5):
|
||
|
-----------------------
|
||
|
|
||
|
error: overflow
|
||
|
|
||
|
Assembly Code (Test 6):
|
||
|
-----------------------
|
||
|
|
||
|
00000000* IDN @00000000 #ffffffffffffffff
|
||
|
0000000d IDN @00000000 @ffffffff
|
||
|
0000001a FIN
|
||
|
|
||
|
Machine Code (Test 6):
|
||
|
----------------------
|
||
|
|
||
|
0100000000ffffffffffffffff0e00000000ffffffff28
|
||
|
|
||
|
Runtime Error (Test 6):
|
||
|
-----------------------
|
||
|
|
||
|
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>
|
||
|
|