3 ms·
There are few examples here: https://benbridle.com/projects/bedrock.html https://benbridle.com/projects/bedrock.html But where are the source codes?
by anta40 1y ago
There are few examples here:
https://benbridle.com/projects/bedrock.html https://benbridle.com/projects/bedrock.html
But where are the source codes?
- _def 1y agoIf you want to see how the code looks like: https://benbridle.com/projects/bedrock/examples.html https://benbridle.com/projects/bedrock/examples.html The source for the examples and assembler/emulator is also there, follow the links.
- anta40 1y agoI mean the source code of sysinfo, clock, cobalt etc. Yes I've seen that page, but don't find the codes there....
- _def 1y agoThere are directly linked there, I guess the hyperlink styling is not too obvious: https://benbridle.com/share/sysinfo.br https://benbridle.com/share/sysinfo.br
- anta40 1y agoI 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 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?
- _def 1y agoAh, you're right, I didn't see that.
- benbridle 1y agoThe 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-clock https://benbridle.com/projects/bedrock/example-microwave-clo... [1] https://benbridle.com/share/snake-full.brc https://benbridle.com/share/snake-full.brc [2] https://benbridle.com/share/keyboard-full.brc https://benbridle.com/share/keyboard-full.brc [3] https://benbridle.com/share/sysinfo-full.brc https://benbridle.com/share/sysinfo-full.brc