News for hackers. Stuff that matters.

axarydax

Re:Ask HN: Tools you have made for yourself? on Saturday June 12, 2021 @01:31PM (#27486000)
Back in 2006 I had a side job as an IT journalist. I wanted to draft my articles while away from the computer on the Pocket PC, as laptops were really out of my reach, and back in the day the localized input methods (touchscreen keyboards) were paid and expensive apps.

I ended up with a text editor supporting various formats and inpit languages, implemented in quite dreadful verbose C#, as I didn’t know any better.

https://sourceforge.net/projects/ppc-edit/

It's because then the other fields, such as the source and destination registers can stay in the same place across various opcodes. In the rare cases there's an immediate field, such as the jump offset, it uses what would otherwise be a register or an operand.

Disassembling RISC-V is then quite straightforward because of this feature.

Re:How to Design Programs (2014) on Friday March 19, 2021 @02:12AM (#26510520)
Do you remember which book that was? Sounds interesting.
Re:Adventures in hardware, part 8 – PS2 Keyboard Typewriter on Wednesday November 04, 2020 @11:38AM (#24990556)
Could be doable by throwing in a larger LCD panel. I think that a more sane platform to implementing a portable LCD typewriter would be either an Arduino with an SD card instead of going all of the way with an FPGA.
Re:Adventures in hardware, part 8 – PS2 Keyboard Typewriter on Tuesday November 03, 2020 @12:51PM (#24982022)
That's a cool idea - I'll look if I can get a word processor for cheap... and turn it into a PS2 keyboard
Re:MCPU emulator and ATTiny85 port on Sunday September 06, 2020 @02:33PM (#24393547)
OP here

That's very cool! Never heard of LED-Transistor logic, and after reading the article I know why :).

I'd like to implement MCPU on an FPGA next weekend, so hope to have two implementations soon.

Re:Solitaire with text-based interface in C on Monday July 13, 2020 @07:01AM (#23819402)
Thanks for finding the bug - I haven’t caught this one! It crashes because it wasn’t checking the column id, that’s an array of piles in game_state, the piles themselves are linked lists.

Linking without tinfo shouldn’t be a problem

Re:Solitaire with text-based interface in C on Sunday July 12, 2020 @03:43PM (#23814182)
I've just finished implementing my Solitaire game with curses interface in C. Solitaire was the first computer game I have played and I never got around to implementing it.

This is a writeup of how the game was made, using the vim+gcc+gdb stack.

Although working on a completely different tech stack at work, I like C, there's something zen-like about being close to the machine and almost universally portable.