projects
/
calu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
afd6dc0
)
[vm] wrong order of input + minibug
author
Martin Perner
<martin@perner.cc>
Fri, 17 Dec 2010 23:51:34 +0000
(
00:51
+0100)
committer
Martin Perner
<martin@perner.cc>
Fri, 17 Dec 2010 23:51:34 +0000
(
00:51
+0100)
8_benchs/src/vm.s
patch
|
blob
|
history
diff --git
a/8_benchs/src/vm.s
b/8_benchs/src/vm.s
index a16b5b947810436e8b85eb46d1c811209f308a35..c9b7e04adf258359a49672beb049afe720bea392 100644
(file)
--- a/
8_benchs/src/vm.s
+++ b/
8_benchs/src/vm.s
@@
-1,24
+1,34
@@
.data
.org 0x10
inputdata:
.data
.org 0x10
inputdata:
-;
4 8 * 8
-.fill 1, 0x3
4382A38
+;
8 * 8 4
+.fill 1, 0x3
82A3834
;8 * X 1
.fill 1, 0x382A5831
;8 * X 1
.fill 1, 0x382A5831
+;1 X * 8
+.fill 1, 0x31582A38
;- X D +
.fill 1, 0x2D58442B
;- X D +
.fill 1, 0x2D58442B
-;D J \xF8 P
-.fill 1, 0x444AF850
+;+ D X -
+.fill 1, 0x2B44582D
+;P \xF8 J D
+.fill 1, 0x50F84A44
;6 8 * +
.fill 1, 0x36382A2B
;6 8 * +
.fill 1, 0x36382A2B
+;+ * 8 6
+.fill 1, 0x2B2A3836
;D I \020 \000
.fill 1, 0x44492000
;D I \020 \000
.fill 1, 0x44492000
+;\000 \020 I D
+.fill 1, 0x00204944
;\000 \000 < ~
.fill 1, 0x00003C7E
;\000 \000 < ~
.fill 1, 0x00003C7E
-;J \005 P 8
-.fill 1, 0x4A055038
-;8 *
-.fill 1, 0x382A
+;~ < \000 \000
+.fill 1, 0x7E3C0000
+;8 P \005 J
+.fill 1, 0x3850054A
+;* 8
+.fill 1, 0x2A38
stack:
.fill 256, 0
stack:
.fill 256, 0
@@
-48,7
+58,7
@@
vm_loop:
;generate effective input addr
add r4, r1, r2
;load input
;generate effective input addr
add r4, r1, r2
;load input
- ld
w
r5, 0(r4)
+ ld
b
r5, 0(r4)
;jump to instr
brr r5
;jump to instr
brr r5