I am trying to learn to use the CPU, but it isnt working
Code:
start:
jmp main
calls:
input:
in eax,8
in ebx,9
ret
output:
out 0,eax
out 1,ebx
ret
main:
call input
call output
jmp main Address Bus Settings:
Code:
Address Offset Size
1 0 8
2 8 8
3 16 8
4 24 8
I'm starting by taking input and sending it out to the display straight away. The displays are screens(the screens that display 2 numbers). Using a debugger, I can see that the data port I am using for input (wired to Add. bus memory2) is getting the numbers from the input device(a numpad, dupe attatched) but the data port linked to the displays (add.bus mem1) is staying at all zeros.
Dupes attatched, images for those who don't want the dupes. BPU is Bennys Processing Unit, by the way. The other dupe is the numpad I made for it. Would have been smarter to use a wired numpad, but i already had that built.
Thanks for the help everyone.
Bookmarks