Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
6a3f7ac9
Commit
6a3f7ac9
authored
Dec 05, 2021
by
George Hotz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oracle test
parent
b825df28
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
README
mipsevm/README
+1
-0
oracle.bin
mipsevm/test/bin/oracle.bin
+0
-0
oracle.asm
mipsevm/test/oracle.asm
+40
-0
No files found.
mipsevm/README
View file @
6a3f7ac9
...
...
@@ -2,6 +2,7 @@ Running MIPS processor on chain
Tests from https://github.com/grantae/OpenMIPS/tree/master/software/test/macro/tests
Licensed GPLv3
Requires https://github.com/sergev/LiteBSD/releases/download/tools/gcc-4.8.1-mips-macosx.tgz to build
Instruction set used by minigeth, 55 instructions:
['addi', 'addiu', 'addu', 'and', 'andi',
...
...
mipsevm/test/bin/oracle.bin
0 → 100644
View file @
6a3f7ac9
File added
mipsevm/test/oracle.asm
0 → 100644
View file @
6a3f7ac9
.
section
.
test
,
"x"
.
balign
4
.
set
noreorder
.
global
test
.
ent
test
#
load
hash
at
0x30001000
#
0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad
=
"hello world"
test
:
lui
$
s0
,
0x3000
ori
$
s0
,
0x1000
li
$
t0
,
0x4717
sh
$
t0
,
0
(
$
s0
)
li
$
t0
,
0x3285
sh
$
t0
,
1
(
$
s0
)
#
length
at
0x31000000
lui
$
s1
,
0x3100
lw
$
s1
,
0
(
$
t0
)
#
should
be
9
li
$
t4
,
9
subu
$
t5
,
$
t0
,
$
t4
sltiu
$
v0
,
$
t5
,
1
#
data
at
0x31000004
#
save
results
lui
$
s0
,
0xbfff
#
Load
the
base
address
0xbffffff0
ori
$
s0
,
0xfff0
ori
$
s1
,
$
0
,
1
#
Prepare
the
'
done
'
status
sw
$
v0
,
8
(
$
s0
)
#
Set
the
test
result
sw
$
s1
,
4
(
$
s0
)
#
Set
'
done
'
$
done
:
jr
$
ra
nop
.
end
test
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment