Skip to main content
7 events
when toggle format what by license comment
Jul 23, 2019 at 23:46 comment added hacktastical You have two clients using the memory: your CPU, and your toggle switches. You need to select which one has access to the memory. You have this shown as 'manual/auto'. I'm suggesting that instead you have 'run/stop' for the CPU, and for the switches you break into the memory and perform the read/write cycle by pausing the CPU momentarily while the switch read/write completes. It's bit more complex but it will allow you to manipulate the machine as it is running. I would also add single-step as a way of watching program flow.
Jul 23, 2019 at 23:30 comment added Andrew Bolotov hacktastical, could you please elaborate on this a little bit more "Since you have just one address and one data, you can treat the DIP switch access as if it were a single-cycle DMA. And your manual/auto switch? Treat it as 'run/halt'. And, add 'reset' as well to get the machine to vector back to zero." I don't have any control logic yet, so I don't have singly-cycle DMA command.
Jul 23, 2019 at 23:26 comment added Andrew Bolotov Thank you guys for you replies, really appreciate that. The main question now is more about the principle how to be able to tamper into the memory so that I can read/write it manually along as running my computer in normal mode. Once this problem solved dip switches could be replaced with something else. Also control unit is not build yet, so my intention was to play it's role by switching jumpers :)
Jul 23, 2019 at 23:20 history edited hacktastical CC BY-SA 4.0
added 323 characters in body
Jul 23, 2019 at 23:14 history edited hacktastical CC BY-SA 4.0
added 323 characters in body
Jul 23, 2019 at 23:12 comment added Janka I recommend to use hex rotaty encoder switches instead of DIP switches. No one –not that most eager learner in the world— will ever bother to use DIP switches to enter more than three bytes.
Jul 23, 2019 at 23:10 history answered hacktastical CC BY-SA 4.0