This is the second catch-up post for the homebrew CPU. All this stuff I worked on a few weeks ago but hadn't gotten around to posting yet.
Leftie-8 Instructions come in 3 categories: Control, Arithmetic, and Branching. As mentioned in the previous post, almost every instruction with several arguments use the A register as the left-hand-side of a binary operation. The general rule is that instructions with 2 arguments, one is A and the other is fetched via some addressing. The addressed argument can be obtained with several addressing modes which are categorized into addressing classes. Instructions with outputs only ever write to the register file except for the dedicated store instruction.
The instruction addressing modes are:
The addressing classes:
That's all for now. Next up I'll start listing each instruction and what they do. I could do it all now but wanna break up the CPU stuff with my other projects. Till next time!