Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cMIPS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roberto Hexsel
cMIPS
Commits
2aab8110
Commit
2aab8110
authored
Jun 23, 2016
by
Roberto Hexsel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stopCount missing in handlers.s
parent
ed8eb887
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
cMIPS/include/handlers.s
cMIPS/include/handlers.s
+18
-0
cMIPS/tests/count.c
cMIPS/tests/count.c
+1
-1
No files found.
cMIPS/include/handlers.s
View file @
2aab8110
...
...
@@ -178,6 +178,24 @@ startCount:
#----------------------------------------------------------------
#===============================================================
=
#
stopCount
disables
the
COUNT
register
,
returns
new
CAUSE
#
CAUSE
.
dc
<=
1
to
disable
counting
#----------------------------------------------------------------
.
text
.
set
noreorder
.
global
stopCount
.
ent
stopCount
stopCount
:
mfc0
$v0
,
c0_cause
lui
$v1
,
0x0800
or
$v0
,
$v0
,
$v1
jr
$ra
mtc0
$v0
,
c0_cause
.
end
stopCount
#----------------------------------------------------------------
#===============================================================
=
#
readCount
returns
the
value
of
the
COUNT
register
#----------------------------------------------------------------
...
...
cMIPS/tests/count.c
View file @
2aab8110
//-------------------------------------------------------------------------
// test if COUNT register counts up monotonically
// returns error if the time to compute every 11th element of the Fibonacci
// sequence, as measured by COUNT is not monotonically increasing
// sequence, as measured by COUNT
,
is not monotonically increasing
//-------------------------------------------------------------------------
#include "cMIPS.h"
...
...
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