My Nandgame CPU now has an Assembler.

Yes, it's LLM generated.
I run into the problem that I want to solve problem X, for for that, I need to solve Y, Z, Q, a.s.o first.
I needed a shortcut.

Anyway, I now can sum the numbers from 0 to 10.
I need to manually calculate jump positions. No labels.
I have no proper halt instruction and will probably simply use the nand2tetris convention of "these instruction bits need to be 1". Which is fugly for future extensions.

I have no idea how to properly solve this.

https://git.uvok.de/fpga-exper/tree/nandgame/assembler?h=main

#nandgame #nand2tetris #verilator

assembler « nandgame - fpga-exper - FPGA experiments

Hm, the #nandgame instruction set seems not to use bit 11, but #nand2tetris apparently uses this bit?

I was given the impression they're the same...

I have managed to simply some expressions in my #Nand2Tetris journey in #Uxntal

Logic is a beautiful thing! ❤️

That time I was doing from #Nand2Tetris in #Uxntal but ended up with tons of tests for 20 routines and a 1Kb testing framework instead!

@zenspider @xoruby

I have very fond memories of working through #Nand2Tetris at London Computation Club

❤️

https://london.computation.club/

London Computation Club

Finally getting back into machine code papercraft. This one even worked on the first try!

It's amazing how much "this is how you work on paper" I need to rediscover. Stuff like not caring about how much scratch paper, scribbled notes, and rough drafts are produced on the way only to be discarded. More obvious things such as how to draw a flow-chart again were not the real hurdle.

Anyway, for those not following along, this is for my solution to chapter 6 "Assembler" of the #nand2tetris book. And no, doing it with pen & paper, or in assembly for that matter, was not suggested. 

Completed Module 3 of #Nand2Tetris Part 2.

I had to create a VM Translator to convert VM language to Assembly. Tedious. Not that fun, to be honest. Essentially it’s a text parsing challenge.

Next module is continued work on the VM Translator. 😓

I’ve completed Module 2 of #Nand2Tetris Part 2.

Or… it’s a bit confusing because Coursera calls it Module 2, but internally it is Unit 0. (I’ll stick with it the Coursera naming)

This week was re-hash of Week 4 from Part 1 of the course. So it’s really just a refresher on the Hack CPU machine language & its assembly language.

Completed Module 1 of #Nand2Tetris Part 2.

It’s just an overview week with a (very) simple assignment. Now it’s on to module 2 where the real fun begins!

Finally starting #Nand2Tetris Part 2!