-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add pvm instructions 5.10, 5.11, 5.12 (#84)
* fix name * add some instructions * add A.5.12 instructions * add to table * fix * add Pvm Config protocol * Update PolkaVM/Sources/PolkaVM/Instructions.swift Co-authored-by: Xiliang Chen <xlchen1291@gmail.com> * fix --------- Co-authored-by: Xiliang Chen <xlchen1291@gmail.com>
- Loading branch information
Showing
8 changed files
with
716 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
public protocol PvmConfig { | ||
// ZA = 2: The pvm dynamic address alignment factor. | ||
var pvmDynamicAddressAlignmentFactor: Int { get } | ||
|
||
// ZI = 2^24: The standard pvm program initialization input data size. | ||
var pvmProgramInitInputDataSize: Int { get } | ||
|
||
// ZP = 2^14: The standard pvm program initialization page size. | ||
var pvmProgramInitPageSize: Int { get } | ||
|
||
// ZQ = 2^16: The standard pvm program initialization segment size. | ||
var pvmProgramInitSegmentSize: Int { get } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.