Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Archetecture:
- 8 registers - ABCDEFGH
- refered to in code as rrr or sss - just means "One of the registers"
- 32 bytes of adressable RAM
- ROM[A] means ROM at adress in A register
- RAM[A] means RAM at adress in A register
- 11 bit instructions
- 000nnnnnnnn - send nnnnnnnn to A
- 00100rrrsss - save value in rrr to sss
- 01rrrsssooo - perform operation ooo on rrr and sss -> B
- ooo -
- 000 - AND
- 001 - OR
- 010 - XOR
- 011 - ADD
- 100 - NAND
- 101 - NOR
- 110 - XNOR
- 111 - SUB
- 10000rrrccc - jump to ROM[A] if rrr is ccc
- ccc -
- >=< or multiple
- 101dddddddd - unconditional jump to ROM[dddddddd]
- 11w00000rrr - read/write RAM[A] to / from rrr
- 11wdddddrrr - read/write RAM[ddddd] to / from rrr (fast access for first 32 bytes ROM)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement