Page 2 of 2
Re: Beaglebone Black OS from scratch 100% ASM
Posted: Mon Oct 31, 2016 1:33 pm
by Ycep
small can be beautiful, so long as it is also clear and complete
That is what my Serbian teacher says before giving us title for essay.
Re: Beaglebone Black OS from scratch 100% ASM
Posted: Tue Nov 01, 2016 1:16 am
by Factorisable
Thank you lansjack.
Canard, i assume the ARMv7 reference manual is mainly about instruction set and how does ARM assembly language look ?
Re: Beaglebone Black OS from scratch 100% ASM
Posted: Thu Nov 03, 2016 10:09 pm
by canard
If you just want to learn assembly programming I would recommend finding resources for beginners. You can use a debugger like GDB to step through a C program you've written and see how each instruction changes the state of the CPU.
I learned assembly programming in school using a MIPS emulator. There's not much difference between CPU architectures if you understand the basics (registers, loads, stores, arithmetic), so you can start with x86 if that's easier for you. Learning C is also a good way to become familiar with assembly. Working with baremetal hardware introduces extra complexity that won't help you learn.
You could look into the Arduino boards with an ARM cortex-m3. Arduino provides an easy path for a beginner to start working with baremetal hardware.
The armv7 document isn't useful for teaching yourself assembly. I use the armv7 doc for looking up the more obscure behavior relating to exception handling and MMU.