News for hackers. Stuff that matters.
Re:Show HN: Bedrock – An 8-bit computing system for running ... by anta40 on Tuesday July 15, 2025 @04:37AM (#44569178)
There are few examples here: https://benbridle.com/projects/bedrock.html

But where are the source codes?

Re:Show HN: Bedrock – An 8-bit computing system for running ... by _def on Tuesday July 15, 2025 @04:41AM (#44569196)
If you want to see how the code looks like: https://benbridle.com/projects/bedrock/examples.html

The source for the examples and assembler/emulator is also there, follow the links.

Re:Show HN: Bedrock – An 8-bit computing system for running ... by anta40 on Tuesday July 15, 2025 @04:47AM (#44569228)
I mean the source code of sysinfo, clock, cobalt etc. Yes I've seen that page, but don't find the codes there....
Re:Show HN: Bedrock – An 8-bit computing system for running ... by _def on Tuesday July 15, 2025 @04:49AM (#44569236)
There are directly linked there, I guess the hyperlink styling is not too obvious: https://benbridle.com/share/sysinfo.br
Re:Show HN: Bedrock – An 8-bit computing system for running ... by anta40 on Tuesday July 15, 2025 @05:01AM (#44569290)
I think those are the binaries. Opening those on nano/vim shows unreadable characters.

I mean, if you take a look at this page: https://benbridle.com/projects/bedrock/bedrock-pc.html

"To assemble a source code file program.brc and save the result as the program program.br, run the command..."

Where are the brc files?

Re:Show HN: Bedrock – An 8-bit computing system for running ... by _def on Tuesday July 15, 2025 @05:04AM (#44569308)
Ah, you're right, I didn't see that.
Re:Show HN: Bedrock – An 8-bit computing system for running ... by benbridle on Tuesday July 15, 2025 @07:24PM (#44576983)
The source code for the microwave clock program is available on the 'Example: Microwave clock' subpage [0]. I hadn't put up code for any of the other programs yet, just because they currently use a lot of library code and idioms that I thought could be confusing to people. I'm intending to make them tidier and release them as proper examplars with commentary sometime. I'll also package up and release my library code at some point, it'd be helpful for people to be able to grab and use all kinds of pre-made functions, and there's a whole user interface framework in there too.

For the meantime though, I uploaded the source code for each of the snake [1], keyboard [2], and system information [3] programs for you or anyone else here to have a look at. Each one is a single source code file with library macros and functions baked in, so you can run `br asm snake-full.brc | br -z` to assemble and run them.

[0] https://benbridle.com/projects/bedrock/example-microwave-clo...

[1] https://benbridle.com/share/snake-full.brc

[2] https://benbridle.com/share/keyboard-full.brc

[3] https://benbridle.com/share/sysinfo-full.brc