Skip to content

Commit

Permalink
move "asm" select above "bin"
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanChaudhary committed Apr 30, 2024
1 parent 78a51f6 commit df359f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ NAND's CPU is an [accumulator machine](https://en.wikipedia.org/wiki/Accumulator

<img src="media/alu.png" width="700">

*taken from the [Nand to Tetris lecture slides](https://drive.google.com/file/d/1Z_fxYmmRNXTkAzmZ6YMoX9NXZIRVCKiw/view)*
*taken from the [Nand to Tetris lecture slides](https://drive.google.com/file/d/1Z_fxYmmRNXTkAzmZ6YMoX9NXZIRVCKiw/view).*

We've reached the instruction set, the nitty-gritty. As indicated, NAND's CPU only has *two* opcodes! This makes the instruction set relatively simple while providing a rich functionality. NAND's ALU is additionally specified with the expressions it can compute in a single instruction.

Expand Down
4 changes: 4 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# TODO
* make String work with just String.new if newWithStr isn't found
* asm and bin loader

# TODO (genetic algorithm)
* make able to re-place obstacles (actually reallocate memory and stuff)
* random acceleration vector should not actually be random, it slightly modifies current by +-1
Expand Down
4 changes: 1 addition & 3 deletions src/app/MemoryView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,9 @@
{/if}
{#if memoryDisplayType === "rom"}
<option value="vm">VM</option>
{/if}
<option value="bin">Bin</option>
{#if memoryDisplayType === "rom"}
<option value="asm">Asm</option>
{/if}
<option value="bin">Bin</option>
</select>
</div>
{#if memoryDisplayType === "rom"}
Expand Down

0 comments on commit df359f3

Please sign in to comment.