Better HN
topnewbestaskshowjobs
Log inSign up

gdevic

84 karma · joined Dec 21, 2019 (6y ago) · 14 submissions

Submissions

comment 5mo ago · link · parent

Great recipe for mediocrity. Do not follow OPs advice. (Source: 23+ years at NVIDIA).

comment 6mo ago · link · parent

That. I blatantly "stole" those from Z80 since they are elegant and effective. I have BF (flag) that gets set in ALU when the result is > 9, then DAA/DAS that add 6 or 10 (the latter wraps around as -6 since registers are 4-bit wide).

     12'b0000_0000_001?: begin : instr_daas    // DAA, DAS
       if (flags[BF_BIT])
         rx[0] <= rx[0] + (op_is_daa ? 4'd6 : 4'd10);
       flags[CF_BIT] <= flags[BF_BIT];
       state <= FETCH;
     end : instr_daas

comment 6mo ago · link · parent

I added a rather lousy video to the end of the chapter https://baltazarstudios.com/calculator-conclusion/

Creating the kind of quality video we're all used to seeing is beyond my skill level and ... motivation.

comment 6mo ago · link · parent

Corrected. Thank you!

comment 6mo ago · link · parent

There is a WebAssembly version running online here, with and without debugger panel:

https://baltazarstudios.com/files/calculator-d/Calculator.ht...

https://baltazarstudios.com/files/calculator/Calculator.html

This WebAsm code is compiled using Qt and Verilator so it runs the "hardware" and its microcode inside the simple UI shell that provides the calc interface. In the debug version you can list the ucode, set breakpoints, see regs etc.

6.

Show HN: A nibble-oriented CPU in Verilog to build a scientific calculator(github.com ↗)

119 points · by gdevic · 6mo ago · 42 comments

comment 6mo ago · link · parent

Absolutely agree with the OP! My first Linux installation was in 1993 when I hauled dozens of floppies from my Uni back home (X-Windows was like 15 floppies?). Even remember emailing to Linus about some issue and he responded. Ever since I _wanted_ to be using Linux but was always put off for all the reasons described in that post. I wanted a nice OS so I can do my school/work/hobbies but not constantly having to work on that OS, figure out dozens of config files, brick the system etc.

At this point WSL2 is more than filling this void. I even stopped using VMWare since WSL is that good.

8.

Porting a Qt Project (SpeedCrunch) to WebAssembly(baltazarstudios.com ↗)

3 points · by gdevic · 1y ago · discuss

comment 2y ago · link · parent

Agree. Lang Lang is all about theatrics, also.

comment 2y ago · link · parent

I loved the article! Spot on and just the right depth for the article size (I am a CPU architect).

11.

Z80 Explorer(baltazarstudios.com ↗)

5 points · by gdevic · 6y ago · discuss