-
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 the basic instructions and some additions
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# iterative-u1 | ||
Trying to iterate on algorithm implementation in u1 to optimize design specifically for common algorithms | ||
|
||
* [Base Instructions](../base_instructions.md) |
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,26 @@ | ||
## Core stack ISA: | ||
|
||
The following is the most stripped down core of a stack ISA reasonably possible. | ||
|
||
1. add | ||
2. subtract | ||
3. logical left shift | ||
4. logical right shift | ||
5. and | ||
6. or | ||
7. not | ||
8. read | ||
9. write | ||
10. pc write | ||
11. immediate | ||
|
||
### Copy | ||
|
||
The core ISA is primarily severely flawed because of the inability to copy values from lower in the stack. This will result in needing to write to memory to read multiple times. The next most optimal ISA is one with a copy instruction added. | ||
|
||
12. copy | ||
|
||
### Carry | ||
|
||
The lack of a carry bit complicates 64-bit integer handling on 32-bit systems. For 64-bit systems this is not a signifcant concern since any value above 64-bits is likely not a counter and is some sort of GUID. | ||
|