by cpp_frog on 7/27/23, 8:30 PM with 17 comments
by neonate on 7/29/23, 7:27 PM
by ksaj on 7/28/23, 4:02 AM
https://github.com/ksaj/helloworld
I kept the code as close to each other in format and style as possible, so comparisons are easier to make. I don't really know the benefits and drawbacks to each method, but they are there and available, so I sleuthed them out and got them working.
by markx2 on 7/29/23, 8:58 PM
Oh wow, memories!
Had an Amstrad CPC6128 in the mid-80s and for the life of me I just could not 'get' BASIC. "Syntax error" in everything, even those multi-page type-in games that Amstrad Action would print each month.
Then I discovered the MAXAM ROM - along with Protext. That, a copy of the CPC Firmware Guide, and I was away.
BASIC stumped me but the Z80 language just clicked.
Loved writing code, learnt the importance of backups, learned how to find cheats in games and so much more. Good times.
by self_awareness on 7/29/23, 8:31 PM
by unwind on 7/29/23, 10:13 PM
[1]: https://developer.arm.com/documentation/den0024/a/The-A64-in...
by molticrystal on 7/30/23, 12:15 AM
>Apparently this is a no-no, even if it is theoretically more efficient. The bare-metal and OS dev folk are pretty much limited to using this method
mov r7, #4 /\* raw system call for write */
swi #0 /* print without using clib \*/
This seems to be just a call into the linux kernel, not bare metal, essentially what the clib does itself. You have to do this to do functions the kernel supports but haven't been ported to clib yet.I haven't really looked deep into it but a google search came up with this for bare metal text printing https://github.com/bztsrc/raspi3-tutorial/tree/master/0A_pcs...
by codewritinfool on 7/30/23, 4:37 PM
Though not assembly language, I think that www.ultibo.org is a cool embedded development environment for the Pi.