mirror of https://github.com/Qortal/AT
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
153 lines
5.9 KiB
153 lines
5.9 KiB
<!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 0x36 (EXT_FUN_RET_DAT)</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 0x36 (EXT_FUN_RET_DAT)</h3> |
|
</div> |
|
|
|
<div id="main"> |
|
<div id="text"> |
|
<pre> |
|
Test for AT instruction code 0x36 (EXT_FUN_RET_DAT) |
|
--------------------------------------------------- |
|
|
|
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 it works with loop. |
|
|
|
Assembly Code (Test 1): |
|
----------------------- |
|
|
|
00000000* SET @00000001 #000000000000000f |
|
0000000d FUN @00000000 2 $00000001 |
|
00000018 SET @00000003 #0000000000000008 |
|
00000025 FUN @00000002 3 $00000003 |
|
00000030 FIN |
|
|
|
Machine Code and Function Setting (Test 1): |
|
---------------------- |
|
|
|
01010000000f00000000000000360200000000000100000001030000000800000000000000360300020000000300000028 |
|
|
|
Data Dump (Test 1): |
|
----------------------- |
|
|
|
00000000 1e 00 00 00 00 00 00 00 0f 00 00 00 00 00 00 00 |
|
00000010 04 00 00 00 00 00 00 00 08 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 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 @00000001 #0000000000000001 |
|
0000000d SET @00000002 #0fffffffffffffff |
|
0000001a FUN @00000001 2 $00000001 |
|
00000025 INC @00000000 |
|
0000002a BLT $00000001 $00000002 :0000001a |
|
00000034 FIN |
|
|
|
Machine Code and Function Setting (Test 2): |
|
---------------------- |
|
|
|
010100000001000000000000000102000000ffffffffffffff0f36020001000000010000000400000000200100000002000000f028 |
|
|
|
Data Dump (Test 2): |
|
----------------------- |
|
|
|
00000000 21 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 |
|
00000010 ff ff ff ff ff ff ff 0f 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 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 |
|
|
|
Runtime Result (Test 2): |
|
----------------------- |
|
|
|
stopped - zero balance |
|
|
|
</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> |
|
|
|
|