How to print a number in ARM assembly?
问题 I am trying to print a number that I have stored. I'm not sure if I am close or way off. Any help would be appreciated though. Here is my code: .data .balign 4 a: .word 4 .text .global main main: ldr r0, addr_of_a mov r1, #8 str r1, [r0] write: mov r0, #1 ldr r1, addr_of_a mov r2, #4 mov r7, #4 swi #0 bx lr addr_of_a: .word a It compiles and runs, but I don't see anything printed. From what I understand, I need the address of where to start printing in r1, how many bytes in r2, the file