How to make bare metal ARM programs and run them on QEMU?
I am trying to get this tutorial to work as intended without success (Something fails after the bl main instruction). According to the tutorial the command (qemu) xp /1dw 0xa0000018 should result in the print 33 (But i get 0x00 instead) a0000018: 33 This is the content of the registers after the main call (see startup.s) (qemu) info registers R00=a000001c R01=a000001c R02=00000006 R03=00000000 R04=00000000 R05=00000005 R06=00000006 R07=00000007 R08=00000008 R09=00000009 R10=00000000 R11=a3fffffc R12=00000000 R13=00000000 R14=0000003c R15=00000004 PSR=800001db N--- A und32 FPSCR: 00000000 I