Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting it working alongside Digital? #7

Open
SirClickALot opened this issue Jan 12, 2022 · 2 comments
Open

Getting it working alongside Digital? #7

SirClickALot opened this issue Jan 12, 2022 · 2 comments

Comments

@SirClickALot
Copy link

SirClickALot commented Jan 12, 2022

Hi again @hneemann,

Following on from my earlier issue #5, I've now got ASM3 running alongside Digital but I'm not quite sure exactly how to get it set up talking to an instance of Digital.

Firstly, in the README, you mention 'You can find the processor in the Digital repo or release ZIP as one of the examples' and I've got those of course, but the question is WHICH one? and how do I go about actually 'loading' one of the example programs into the memory? From what I am reading, I simply need to the start the right processor simulation and then I can use the 'Remote interface' to hook the two up but I can't quite get started.

Would you be able to knock up a quick step-by-step idiots' guide that I can follow through and then once I'm up and running my daughter and I are hoping to re-create all of our simple simple digital logic-related HTML5 'explainers' like this example using Digital simulations as the accompanying 'try it for yourself' resources.

BTW, Once I've been able to experiment a bit more with preparing actual secondary school lessons around Digital as the tool of choice, I expect to be able to contribute a whole collection of school-ready resources so that we can promote Digital into the UK secondary school system as a tool of choice. You'll notice how the example resource that I've sent you to above has a convenient 'snap to full screen' button - ideal for use in the classroom.

Nick and Evie

@SirClickALot
Copy link
Author

Just a follow up from the above, I also wondered whether you might have any 'other' even simpler CPU simulations that can link the Assembler? The simpler the better in the secondary school classroom I find. Better still, any 8-bit or even 4-bit ones!

Thanks

Nick and Evie

@hneemann
Copy link
Owner

Open the file Processor.dig (it does not realy matter because all variants share the same Control Unit).

Then you can open the assembler and enter assembly instructions. When you press the play button in the assembler, the instructions are compiled, transferred to the simulator and executed. The Bug button starts the single step mode.
The simulator does not have to be operated anymore, everything happens from the assembler IDE.

Just a follow up from the above, I also wondered whether you might have any 'other' even simpler CPU simulations that can link the Assembler? The simpler the better in the secondary school classroom I find. Better still, any 8-bit or even 4-bit ones!

The processor should be both: easy to understand but also easy to program. The simpler a processor becomes, the more complex it is to design programs for it.
This processor seems to me a good compromise. Still simple enough to understand, but still good to program with commands like LDD R0, [BP+4].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants