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
628c189a
Unverified
Commit
628c189a
authored
Oct 01, 2023
by
OptimismBot
Committed by
GitHub
Oct 01, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7491 from Sabnock01/sabnock/MIPS-natspec
📝
docs: consistent `MIPS.sol` return params
parents
efe23a57
d0111ec2
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
mips_more.go
op-bindings/bindings/mips_more.go
+1
-1
MIPS.sol
packages/contracts-bedrock/src/cannon/MIPS.sol
+3
-2
No files found.
op-bindings/bindings/mips_more.go
View file @
628c189a
This diff is collapsed.
Click to expand it.
packages/contracts-bedrock/src/cannon/MIPS.sol
View file @
628c189a
...
...
@@ -77,7 +77,7 @@ contract MIPS {
}
/// @notice Computes the hash of the MIPS state.
/// @return out_ The hash
of the
MIPS state.
/// @return out_ The hash
ed
MIPS state.
function outputState() internal returns (bytes32 out_) {
assembly {
// copies 'size' bytes, right-aligned in word at 'from', to 'to', incl. trailing data
...
...
@@ -141,6 +141,7 @@ contract MIPS {
}
/// @notice Handles a syscall.
/// @return out_ The hashed MIPS state.
function handleSyscall() internal returns (bytes32 out_) {
unchecked {
// Load state from memory
...
...
@@ -372,7 +373,7 @@ contract MIPS {
/// @param _rs The value of the RS register.
/// @param _rt The value of the RT register.
/// @param _storeReg The register to store the result in.
/// @return out_ The hash
of the resulting
MIPS state.
/// @return out_ The hash
ed
MIPS state.
function handleHiLo(uint32 _func, uint32 _rs, uint32 _rt, uint32 _storeReg) internal returns (bytes32 out_) {
unchecked {
// Load state from memory
...
...
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