Show HN: A nibble-oriented CPU in Verilog to build a scientific calculator
41–46 of 46 posts
Re: Show HN: A nibble-oriented CPU in Verilog to build a scientific calculator
#42Love this and love seeing people building their own hardware/software tools. I hope to carve out the time soon to be one. Calculators are a perfect project are there videos available?
Creating the kind of quality video we're all used to seeing is beyond my skill level and ... motivation.
Re: Show HN: A nibble-oriented CPU in Verilog to build a scientific calculator
#43My dad worked for HP from the mid-1970s through the mid-1990s. Needless to say, I used HP calculators in high school and college. The best things about having an HP calculator were the solid physical construction (the buttons on the 11C and 15C were awesome), the accuracy, and the fact that whenever your classmates asked to borrow your calculator they would recoil in horror when you asked them whether they knew RPN.…
> the buttons on the 11C and 15C were awesome What is the trick to engineering HP calculator keys? Nobody gets keys right like the old HP calculators. In this age of 3D printing and fast prototypes, we really ought to be able to crack this.
They showed us how they computed the key dimensions and typography with an (HP) minicomputer, then had it print out the commands for some kind of numerically controlled cutting machine on paper tapes using an old ASR33 teletype.
The cutting machine generated moulds for the injection moulding machines making the keys.
The keys are in two parts: light coloured digits and symbols and darker plastic forming the shape of the key itself and surrounding the lighter symbol plastic. As a result, they can be worn down but they can never wear out.
Re: Show HN: A nibble-oriented CPU in Verilog to build a scientific calculator
#44My dad worked for HP from the mid-1970s through the mid-1990s. Needless to say, I used HP calculators in high school and college. The best things about having an HP calculator were the solid physical construction (the buttons on the 11C and 15C were awesome), the accuracy, and the fact that whenever your classmates asked to borrow your calculator they would recoil in horror when you asked them whether they knew RPN.…
I still have my dads old HP with the glowing red letters and all the functions. Not sure if we still have the charger. Not sure the battery is any good, but the calculator worked fine last time it was turned on decades ago. Any idea if this can be made to function again?
Re: Show HN: A nibble-oriented CPU in Verilog to build a scientific calculator
#45Earlier quoted context omitted.
Intel 8080 already had DAA, so it could add BCD numbers. Because there was no BCD subtraction, that had to be done by an indirect method, e.g. by doing a nines' complement before a BCD addition. Zilog Z80 improved this, so that on it DAA could also be used after a subtraction, when it would correctly adjust the result for implementing BCD subtraction. This was one of the Z80 improvements that were considered importan…
Slight correction, the correct offset is 7, and DAA only adds 6. But the trick is also adding the carry bit. This works on the 6502 in decimal mode too, e.g. https://news.ycombinator.com/item?id=6342286 On the Z80 and 8086, the code can be made one byte shorter by taking advantage of adjust-after-subtraction, which the 8080 didn't have (and on 6502 worked differently): CP 10 / CMP AL,10 ;set carry if valid decimal di…
12'b0000_0000_001?: begin : instr_daas // DAA, DAS
if (flags[BF_BIT])
rx[0] Re: Show HN: A nibble-oriented CPU in Verilog to build a scientific calculator
#46If the CPU is nibble-oriented, wouldn't that mean that that is its byte size?
Are you trying to make a pun with byte/bite relating to nibble? Because that's actually where the term nibble (referring to 4 bits) comes from, so I'm not sure such a pun even counts as a pun anymore. Or am I misinterpreting your comment?