Wombat Simulator 1
Memory |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
0 |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
Some programs
- 30 21 C-1 C5 C4 61 40 00 : Math magic trick
- pick a number
- subtract 1
- add 4
- add 5
- subtract the starting number
- Supprise: the result is 8. (n-1+4+5-n = 8)
- 15 40 C1 25 C-10 A0 00 : Count to 10
- 30 21 30 22 61 A8 12 B9 11 40 00 : find the bigger of two numbers iput.
A simple machine simulator based on Wombat.
Some Instructions :
- Instructions are 0-C (D and E don't work yet)
- Memory is/immediate is in decimal.
- Memory is restricted to 0 to 7
- Instruction set is here.
This is a quick hack for a class lession. It may be expanded.
The code is bad, it is a hack.