From c49b789ba04d688f10ba4e5e5ac69c16985b3f02 Mon Sep 17 00:00:00 2001 From: wixette Date: Sun, 8 Mar 2020 21:22:06 +0800 Subject: [PATCH] the ref page is done. TODO: l10n of the tutorial --- css/style.css | 9 ++++++ index.html | 79 +++++++++++++++++++++++++++++++++++++++++++++++---- js/l10n.js | 5 ++++ 3 files changed, 88 insertions(+), 5 deletions(-) diff --git a/css/style.css b/css/style.css index 6e4444a..d75500d 100644 --- a/css/style.css +++ b/css/style.css @@ -192,6 +192,15 @@ footer { overflow-x: hidden; } +.tutorial { + background-color: #fff; + color: #222; + font-size: 12px; + min-height: 20px; + overflow-x: hidden; + padding: 5px; +} + .button { background-color: #fff; border: 1px solid #bbb; diff --git a/index.html b/index.html index 8e42783..aba9792 100644 --- a/index.html +++ b/index.html @@ -631,12 +631,81 @@
-

- Source code: - github.com/wixette/8800-simulator -

-
+
+
Source code
+
+
+

+

+

+
+
+
Quick Tutorial
+
+
+

+

+

+
+        LDA 0080H  ; 00 111 010
+                   ; 10 000 000
+                   ; 00 000 000
+        MOV B,A    ; 01 000 111
+        LDA 0081H  ; 00 111 010
+                   ; 10 000 001
+                   ; 00 000 000
+        ADD B      ; 10 000 000
+        STA 0082H  ; 00 110 010
+                   ; 10 000 010
+                   ; 00 000 000
+        JMP 0000H  ; 11 000 011
+                   ; 00 000 000
+                   ; 00 000 000
+

+

    +
  1. Turn on the computer.
  2. +
  3. Set switches A7 - A0 to 00 111 010 (up for 1, down for 0).
  4. +
  5. Click "DEPOSIT".
  6. +
  7. Set switches A7 - A0 to 10 000 000.
  8. +
  9. Click "DEPOSIT NEXT".
  10. +
  11. Repeat step 4-5 to input the following bytes one by one: 00 000 000, 01 000 111, 00 111 010, 10 000 001, 00 000 000, 10 000 000, 00 110 010, 10 000 010, 00 000 000, 11 000 011, 00 000 000, 00 000 000.
  12. +
  13. Set switches A7 - A0 to 10 000 000.
  14. +
  15. Click "EXAMINE"
  16. +
  17. Set switches A7 - A0 to 00 000 001 (the first number to be added, or 1 in decimal).
  18. +
  19. Click "DEPOSIT".
  20. +
  21. Set switches A7 - A0 to 00 000 010 (the second number to be added, or 2 in decimal).
  22. +
  23. Click "DEPOSIT NEXT".
  24. +
  25. Click "RESET".
  26. +
  27. Click "RUN" and wait for a few seconds.
  28. +
  29. Click "STOP".
  30. +
  31. Set switches A7 - A0 to 10 000 010 (the address that holds the sum).
  32. +
  33. Click "EXAMINE"
  34. +
  35. The LEDs D7 - D0 show the result 00 000 011 (3 in decimal).
  36. +
  37. Turn off the computer.
  38. +
+

+
+ +
+
References
+
+
+

+

+

+
+ +