Commits

Kevin Veroneau  committed 69e3f03

Added Hello World example.

  • Participants
  • Parent commits a6cabcf

Comments (0)

Files changed (3)

                     self.mem.ptr = self.dx.b
 
 if __name__ == '__main__':
-    import readline
-    c = CPU('bios')
-    cli = Coder(c)
-    cli()
+    #import readline
+    c = CPU('hello.bin')
+    c.run()
+    #cli = Coder(c)
+    #cli()

File hello.bin

Binary file added.
+Simple CPU Simulator -- Hello World example code:
+
+This is the source code for hello.bin, which you can view in a hex editor:
+
+---------
+jmp 30
+data Hello Simple CPU Simulator!
+ax 2
+int 10
+int 1
+savebin hello.bin
+boot 0
+---------
+
+If you enter in this exact code into the Coder interface, it will generate hello.bin.