Beaglebone Black OS from scratch 100% ASM

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Ycep
Member
Member
Posts: 401
Joined: Mon Dec 28, 2015 11:11 am

Re: Beaglebone Black OS from scratch 100% ASM

Post 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.
Factorisable
Posts: 16
Joined: Wed Aug 03, 2016 12:09 pm

Re: Beaglebone Black OS from scratch 100% ASM

Post by Factorisable »

Thank you lansjack.

Canard, i assume the ARMv7 reference manual is mainly about instruction set and how does ARM assembly language look ?
canard
Posts: 2
Joined: Sun Oct 30, 2016 1:55 pm
Libera.chat IRC: canard

Re: Beaglebone Black OS from scratch 100% ASM

Post 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.
Post Reply