Skip to content

Commit

Permalink
[#58] automation
Browse files Browse the repository at this point in the history
  • Loading branch information
vbmacher committed Mar 25, 2023
1 parent e521051 commit 51a66b8
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 32 deletions.
4 changes: 2 additions & 2 deletions _documentation/user/_doc/altair8800/automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ Console will contain additional information about the emulation progress:
[INFO] Compiler started working.
[INFO] [INFO ] Intel 8080 Assembler, version 0.41
[INFO] [INFO ] Compile was successful.
Output: /home/vbmacher/tmp/emuStudio-release/examples/as-8080/reverse.hex
Output: /home/emuStudio/examples/as-8080/reverse.hex
Program starts at 0x03E8
[INFO] [INFO ] Compiled file was loaded into memory.
[INFO] Compilation finished.
[INFO] Resetting CPU...
[INFO] Running emulation...
[INFO] Normal stop
[INFO] Instruction location = 041Ch
[INFO] Instruction location = 0x41C
[INFO] Emulation completed
```
14 changes: 9 additions & 5 deletions _documentation/user/_doc/brainduck/automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,26 @@ additional information about the emulation progress:

{:.code-example}
```
[WARN] Input file vt100-terminal.in does not exist
[INFO] Starting emulation automation...
[INFO] Emulating computer: BrainDuck
[INFO] Compiler: BrainDuck Compiler, version 0.41
[INFO] CPU: BrainDuck CPU, version 0.41
[INFO] Memory: Byte-cell based operating memory, version 0.41
[INFO] Memory size: 65536
[INFO] Device: VT100 Terminal, version 0.41
[INFO] Compiling input file: examples/brainc-brainduck/mandelbrot.b
[INFO] Compiler started working.
[INFO] [Info ] BrainDuck Compiler, version 0.41
[INFO] [Info ] Compile was successful. Output: /home/vbmacher/emuStudio/examples/brainc-brainduck/mandelbrot.hex
[INFO] [Info ] Compiled file was loaded into operating memory.
[INFO] [INFO ] BrainDuck Compiler, version 0.41
[INFO] [INFO ] Compile was successful.
Output: /home/emuStudio/examples/brainc-brainduck/mandelbrot.hex
Program starts at 0x0000
[INFO] [INFO ] Memory has been cleared.
[INFO] [INFO ] Compiled file was loaded into operating memory.
[INFO] Compilation finished.
[INFO] Program start address: 0000h
[INFO] Resetting CPU...
[INFO] Running emulation...
[INFO] Normal stop
[INFO] Instruction location = 2CBCh
[INFO] Instruction location = 0x2CBC
[INFO] Emulation completed
```
4 changes: 2 additions & 2 deletions _documentation/user/_doc/ram/automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ After the run, the following output on the stdout can be expected:
[INFO] Compiler started working.
[INFO] [INFO ] RAM Machine Assembler, version 0.41
[INFO] [INFO ] Compile was successful.
Output: /home/vbmacher/tmp/emuStudio-release/examples/ramc-ram/factorial.bram
Output: /home/emuStudio/examples/ramc-ram/factorial.bram
[INFO] [INFO ] Compiled file was loaded into program memory.
[INFO] Compilation finished.
[INFO] Resetting CPU...
[INFO] Running emulation...
[INFO] Normal stop
[INFO] Instruction location = 0011h
[INFO] Instruction location = 0x0011
[INFO] Emulation completed
```

Expand Down
4 changes: 2 additions & 2 deletions _documentation/user/_doc/rasp/automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ After the run, the following output on the stdout can be expected:
[INFO] Compiler started working.
[INFO] [INFO ] RASP Machine Assembler, version 0.41
[INFO] [INFO ] Compile was successful.
Output: /home/vbmacher/tmp/emuStudio-release/examples/raspc-rasp/factorial.brasp
Output: /home/emuStudio/examples/raspc-rasp/factorial.brasp
Program starts at 0x0014
[INFO] [INFO ] Compiled file was loaded into program memory.
[INFO] Compilation finished.
[INFO] Resetting CPU...
[INFO] Running emulation...
[INFO] Normal stop
[INFO] Instruction location = 0037h
[INFO] Instruction location = 0x0037
[INFO] Emulation completed
```

Expand Down
4 changes: 2 additions & 2 deletions _documentation/user/_doc/ssem/automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ The console will contain information about emulation progress:
[INFO] Compiler started working.
[INFO] [INFO ] SSEM Assembler, version 0.41
[INFO] [INFO ] Compile was successful.
Output: /home/vbmacher/tmp/emuStudio-release/examples/as-ssem/noodle-timer.bssem
Output: /home/emuStudio/examples/as-ssem/noodle-timer.bssem
Program starts at 0x0000
[INFO] Compilation finished.
[INFO] Resetting CPU...
[INFO] Running emulation...
[INFO] Normal stop
[INFO] Instruction location = 005Ch
[INFO] Instruction location = 0x005C
[INFO] Emulation completed
```

Expand Down
4 changes: 2 additions & 2 deletions documentation/user/altair8800/automation.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
[INFO] Compiler started working.
[INFO] [INFO ] Intel 8080 Assembler, version 0.41
[INFO] [INFO ] Compile was successful.
Output: /home/vbmacher/tmp/emuStudio-release/examples/as-8080/reverse.hex
Output: /home/emuStudio/examples/as-8080/reverse.hex
Program starts at 0x03E8
[INFO] [INFO ] Compiled file was loaded into memory.
[INFO] Compilation finished.
[INFO] Resetting CPU...
[INFO] Running emulation...
[INFO] Normal stop
[INFO] Instruction location = 041Ch
[INFO] Instruction location = 0x41C
[INFO] Emulation completed
</code></pre></div></div> </div> </div> <div class="search-overlay"></div> </div> <script> var config = {} ; mermaid.initialize(config); window.mermaid.init(undefined, document.querySelectorAll('.language-mermaid')); </script> </body> </html>
10 changes: 5 additions & 5 deletions documentation/user/assets/js/search-data.json

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions documentation/user/brainduck/automation.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions documentation/user/ram/automation.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
[INFO] Compiler started working.
[INFO] [INFO ] RAM Machine Assembler, version 0.41
[INFO] [INFO ] Compile was successful.
Output: /home/vbmacher/tmp/emuStudio-release/examples/ramc-ram/factorial.bram
Output: /home/emuStudio/examples/ramc-ram/factorial.bram
[INFO] [INFO ] Compiled file was loaded into program memory.
[INFO] Compilation finished.
[INFO] Resetting CPU...
[INFO] Running emulation...
[INFO] Normal stop
[INFO] Instruction location = 0011h
[INFO] Instruction location = 0x0011
[INFO] Emulation completed
</code></pre></div></div> <p>Then, in the current working directory, there will be created three new files:</p> <ul> <li><code class="language-plaintext highlighter-rouge">input_tape.out</code>: contains all input tape symbols</li> <li><code class="language-plaintext highlighter-rouge">storage.out</code>: contains log of register tape changes during emulation</li> <li><code class="language-plaintext highlighter-rouge">output_tape.out</code>: contains all output tape symbols</li> </ul> <p>Content of each file is a human-readable text file, but also parseable by computer. Every row has format:</p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>position symbol
</code></pre></div></div> <p>where <code class="language-plaintext highlighter-rouge">position</code> is zero-based index of a symbol on particular tape, and <code class="language-plaintext highlighter-rouge">symbol</code> is the symbol on that position. Abstract tapes of RAM machine are left-bounded, therefore all positions start at 0.</p> </div> </div> <div class="search-overlay"></div> </div> <script> var config = {} ; mermaid.initialize(config); window.mermaid.init(undefined, document.querySelectorAll('.language-mermaid')); </script> </body> </html>
4 changes: 2 additions & 2 deletions documentation/user/rasp/automation.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
[INFO] Compiler started working.
[INFO] [INFO ] RASP Machine Assembler, version 0.41
[INFO] [INFO ] Compile was successful.
Output: /home/vbmacher/tmp/emuStudio-release/examples/raspc-rasp/factorial.brasp
Output: /home/emuStudio/examples/raspc-rasp/factorial.brasp
Program starts at 0x0014
[INFO] [INFO ] Compiled file was loaded into program memory.
[INFO] Compilation finished.
[INFO] Resetting CPU...
[INFO] Running emulation...
[INFO] Normal stop
[INFO] Instruction location = 0037h
[INFO] Instruction location = 0x0037
[INFO] Emulation completed
</code></pre></div></div> <p>Then, in the current working directory, there will be created three new files:</p> <ul> <li><code class="language-plaintext highlighter-rouge">input_tape.out</code>: contains all input tape symbols</li> <li><code class="language-plaintext highlighter-rouge">output_tape.out</code>: contains all output tape symbols</li> </ul> <p>Content of each file is a human-readable text file, but also parseable by computer. Every row has format:</p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>position symbol
</code></pre></div></div> <p>where <code class="language-plaintext highlighter-rouge">position</code> is zero-based index of a symbol on particular tape, and <code class="language-plaintext highlighter-rouge">symbol</code> is the symbol on that position. Abstract tapes of RASP machine are left-bounded, therefore all positions start at 0.</p> </div> </div> <div class="search-overlay"></div> </div> <script> var config = {} ; mermaid.initialize(config); window.mermaid.init(undefined, document.querySelectorAll('.language-mermaid')); </script> </body> </html>
4 changes: 2 additions & 2 deletions documentation/user/ssem/automation.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
[INFO] Compiler started working.
[INFO] [INFO ] SSEM Assembler, version 0.41
[INFO] [INFO ] Compile was successful.
Output: /home/vbmacher/tmp/emuStudio-release/examples/as-ssem/noodle-timer.bssem
Output: /home/emuStudio/examples/as-ssem/noodle-timer.bssem
Program starts at 0x0000
[INFO] Compilation finished.
[INFO] Resetting CPU...
[INFO] Running emulation...
[INFO] Normal stop
[INFO] Instruction location = 005Ch
[INFO] Instruction location = 0x005C
[INFO] Emulation completed
</code></pre></div></div> <p>the emulation will run without user interaction, and file <code class="language-plaintext highlighter-rouge">ssem.out</code> will be created with the following content:</p> <div class="language-plaintext code-example highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ACC=0x3bfffe2
CI=0x58
Expand Down

0 comments on commit 51a66b8

Please sign in to comment.