Kernel Updates

Topics related to the API, programming discussions & questions, coding tips, bugs, etc. should go here.
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Kernel Updates

Post by uze6666 »

Little update: Added the "Akuma" SPI Ram demo to Github. Also sent a mail to PitfallJones in the hope of getting the sources for his games (Chucky Egg, XOR, Buddah & Pengo).
User avatar
danboid
Posts: 1935
Joined: Sun Jun 14, 2020 12:14 am

Re: Kernel Updates

Post by danboid »

I do like your newfound determination to track down the sources for all the Uzebox games. What aboout including Nicksen's inc2png in the tools section of the repo?

Did you say that the kernel used to use RAM patches? Will it be hard to implement? It would be for me as I don't know asm and I presume it would have to be written in assembly.

Speaking of which, is there a good beginners guide to learning AVR asm? I think most everyone here learned another dialect like Z80 first.
CunningFellow
Posts: 1445
Joined: Mon Feb 11, 2013 8:08 am
Location: Brisbane, Australia

Re: Kernel Updates

Post by CunningFellow »

https://avr-asm.tripod.com/index.html is one I use to point people too.

However these days I also strongly recommend looking at the out put of the compiler - the LSS file. As it will also let you learn about the ABI and what registers C needs you toi keep/restore.

https://gcc.gnu.org/wiki/avr-gcc#ABI
User avatar
danboid
Posts: 1935
Joined: Sun Jun 14, 2020 12:14 am

Re: Kernel Updates

Post by danboid »

Thanks CF!

I have updated the Tutorials section of the Getting Started wiki page with your links.

https://uzebox.org/wiki/Getting_Started_on_the_Uzebox
User avatar
danboid
Posts: 1935
Joined: Sun Jun 14, 2020 12:14 am

Re: Kernel Updates

Post by danboid »

I spotted a couple of mistakes in the README but then I decided that it didn't read very well so I rewrote it.

https://github.com/Uzebox/uzebox/pull/107
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Kernel Updates

Post by uze6666 »

I do like your newfound determination to track down the sources for all the Uzebox games. What aboout including Nicksen's inc2png in the tools section of the repo?
Not really newfound, browse the old forums you can see I used to bug peoples a lots for their sources.
Did you say that the kernel used to use RAM patches? Will it be hard to implement? It would be for me as I don't know asm and I presume it would have to be written in assembly.
Low level mixing has to be in ASM, but the patches code can be in C plain C.
Thanks for the fixes, though there's some parts I'd rather keep.

Btw, another important place for programming under AVRs, is the avr-libc website:
https://www.nongnu.org/avr-libc/user-manual/pages.html
https://www.nongnu.org/avr-libc/user-manual/FAQ.html
User avatar
danboid
Posts: 1935
Joined: Sun Jun 14, 2020 12:14 am

Re: Kernel Updates

Post by danboid »

uze6666 wrote: Sat Mar 04, 2023 4:39 pm Btw, another important place for programming under AVRs, is the avr-libc website:
https://www.nongnu.org/avr-libc/user-manual/pages.html
https://www.nongnu.org/avr-libc/user-manual/FAQ.html
I've add a link to the avr-libc man pages to the Tutorials section of the Getting Started wiki page, even tho I'm not sure it counts as a "tutorial". Maybe it belongs instead as a link in the "Help, Tips and Tutorials" section on the main page? I suppose its exact location does't really matters as long as users notice it.

I didn't think there was much need to add to a link to the avr-libc FAQ too as its linked to on the main avr-libc manuals page.

https://uzebox.org/wiki/Getting_Started_on_the_Uzebox

I spotted the Mac instructions today. Good to know thats an option but it looks like a lot more effort is required than setting up a Linux UB dev env, as I expected.
User avatar
danboid
Posts: 1935
Joined: Sun Jun 14, 2020 12:14 am

Re: Kernel Updates

Post by danboid »

Closely related to me editing the README, this morning I learned that in North America you say game console (singular) but in the UK we always say gameS console, plural. They do play more than one game most of 'em so we're right this time, admit it!

I agree with using ass instead of arse tho, I'll give you that!
User avatar
danboid
Posts: 1935
Joined: Sun Jun 14, 2020 12:14 am

Re: Kernel Updates

Post by danboid »

I know you weren't keen on my rewrite of the README Uze but can you fix these errors in it please:

"Many commercial version are or where available" should read "Many commercial versions were available"

"SD/MicroSD and FAT16/32 API" - MicroSD? FAT is a filesystem. Seems odd to refer to its API. I don't think Uzebox uses an official MS FAT API does it?

"The sources comes complete" should read "The sources come complete"

"GameLoader: 4K Bootloader which allows to flash games from a standard FAT16 formatted SD card" - This is horribly out of date. Bootloader5 (gameloader?) supports FAT32 and FAT16.

I really don't like the line "Get one of those if you know nothing about electronics!" personally. I didn't (and don't) know anything about elecronics but it didn't stop me building a Uzebox so I'd adjust or remove that line and besides, those kits etc aren't available any more so there is no kit or pre-built Uzebox to get.
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Kernel Updates

Post by uze6666 »

I know you weren't keen on my rewrite of the README Uze but can you fix these errors in it please:
Hey, no offense, it's just that I got used to see that text and it is the way it was represented in many other sites and wikis. Send me an updated PR with those minimal corrections and will happily merge it. :)
Post Reply