Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are few examples here: https://benbridle.com/projects/bedrock.html

But where are the source codes?



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


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.


I mean the source code of sysinfo, clock, cobalt etc. Yes I've seen that page, but don't find the codes there....


There are directly linked there, I guess the hyperlink styling is not too obvious: https://benbridle.com/share/sysinfo.br


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?


Ah, you're right, I didn't see that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: