Mel,<br>It never occurred to me before that it was of enough interest to bother to make open-source, but I am happy to do it. The introduction is buried in my course notes starting shortly after<br><a href="http://www.cs.luc.edu/~anh/150s07/notes/notes.html#Binary">http://www.cs.luc.edu/~anh/150s07/notes/notes.html#Binary</a><br>
The simulator itself also includes built-in help screens on the simulator and on the assembler language.<br><br>A RISC simulator would be a good alternative that would take some tweaking to show all the registers and adjust the assembler interpreter, but you can't get much simpler than this one-register machine. The instruction set comes from Decker and Hirshfield, but it is hardly a creative leap. I include code to input and output the binary file structure for Decker and Hirshfield's Java applet simulator, but that could easily be cut out. I never use it.<br>
<br>Andy<br><br><div class="gmail_quote">On Jan 27, 2008 11:58 PM, Mel Chua <<a href="mailto:mel@melchua.com">mel@melchua.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Andy,<br><br>This is fantastic! Is the code open-source? (I'm guessing yes, but just<br>making sure...) If it is, you might want to consider applying for<br>[[Project hosting]] on a <a href="http://laptop.org" target="_blank">laptop.org</a> machine and wrapping it into an .xo<br>
package so that kids can download and play with it. (Also, are there any<br>docs or tutorials to start new hackers off, or would you like someone to<br>write them?)<br><br>Might also make an interesting PyCon sprint for someone to work on, or a<br>
CS/EE class project in terms of porting this to the XO (and also<br>encouraging people to play with the firmware, [[OFW]], which is written<br>mostly in [[Forth]].)<br><br>Are there any teachers/professors/students who might be able to work on<br>
this project, or something like it, as a course assignment or some other<br>for-credit thing this semester? Persuading schools to "count" OLPC<br>projects towards graduation tends to help free up time to work on stuff. ;)<br>
<br>-Mel<br><div class="Ih2E3d"><br>Andrew Harrington wrote:<br>> Sheila,<br>> I am not, but I have a super-simple assembler simulator I use for intro<br>> students. It is written in Python, using the simple Zelle graphic<br>
> package my students used in class (so the graphics are pretty<br>> primitive) and the central engine would easily allow modification for<br>> another instruction set, and it has a console based I/O that the<br>
> graphics wraps around.<br>><br>> People are welcomed to hack it if interested.<br>> <a href="http://www.cs.luc.edu/%7Eanh/150s07/examples/pipFiles.zip" target="_blank">http://www.cs.luc.edu/~anh/150s07/examples/pipFiles.zip</a><br>
><br>> Andy<br>><br>> On Jan 27, 2008 8:41 AM, sheila miguez <<a href="mailto:shekay@pobox.com">shekay@pobox.com</a><br></div><div class="Ih2E3d">> <mailto:<a href="mailto:shekay@pobox.com">shekay@pobox.com</a>>> wrote:<br>
><br>> I remember Mel mentioning a project to allow people to program a<br>> low-level language via a high-level language. Is anyone here involved<br>> in this?<br>><br>> --<br>> sheila<br>
> _______________________________________________<br>> OLPC-Chicago mailing list<br></div>> <a href="mailto:OLPC-Chicago@lists.laptop.org">OLPC-Chicago@lists.laptop.org</a> <mailto:<a href="mailto:OLPC-Chicago@lists.laptop.org">OLPC-Chicago@lists.laptop.org</a>><br>
<div class="Ih2E3d">> <a href="http://lists.laptop.org/listinfo/olpc-chicago" target="_blank">http://lists.laptop.org/listinfo/olpc-chicago</a><br>><br>><br>><br>><br>> --<br>> Andrew N. Harrington<br>
> Director of Academic Programs<br>> Computer Science Department<br>> Loyola University Chicago<br>> 512B Lewis Towers (office)<br>> Snail mail to Lewis Towers 416<br>> 820 North Michigan Avenue<br>
> Chicago, Illinois 60611<br>><br>> <a href="http://www.cs.luc.edu/%7Eanh" target="_blank">http://www.cs.luc.edu/~anh</a><br>> Phone: 312-915-7999<br>> Fax: 312-915-7998<br></div>> <a href="mailto:gdp@cs.luc.edu">gdp@cs.luc.edu</a> <mailto:<a href="mailto:gdp@cs.luc.edu">gdp@cs.luc.edu</a>> for graduate administration<br>
> <a href="mailto:upd@cs.luc.edu">upd@cs.luc.edu</a> <mailto:<a href="mailto:upd@cs.luc.edu">upd@cs.luc.edu</a>> for undergrad administration<br>> <a href="mailto:aharrin@luc.edu">aharrin@luc.edu</a> <mailto:<a href="mailto:aharrin@luc.edu">aharrin@luc.edu</a>> as professor<br>
><br>><br>> ------------------------------------------------------------------------<br><div><div></div><div class="Wj3C7c">><br>> _______________________________________________<br>> OLPC-Chicago mailing list<br>
> <a href="mailto:OLPC-Chicago@lists.laptop.org">OLPC-Chicago@lists.laptop.org</a><br>> <a href="http://lists.laptop.org/listinfo/olpc-chicago" target="_blank">http://lists.laptop.org/listinfo/olpc-chicago</a><br></div>
</div></blockquote></div><br><br clear="all"><br>-- <br>Andrew N. Harrington<br> Director of Academic Programs<br> Computer Science Department <br> Loyola University Chicago <br> 512B Lewis Towers (office) <br> Snail mail to Lewis Towers 416<br>
820 North Michigan Avenue<br> Chicago, Illinois 60611<br><br><a href="http://www.cs.luc.edu/~anh">http://www.cs.luc.edu/~anh</a><br>Phone: 312-915-7999<br>Fax: 312-915-7998<br><a href="mailto:gdp@cs.luc.edu">gdp@cs.luc.edu</a> for graduate administration<br>
<a href="mailto:upd@cs.luc.edu">upd@cs.luc.edu</a> for undergrad administration<br><a href="mailto:aharrin@luc.edu">aharrin@luc.edu</a> as professor