I know there\'s a question here but I really don\'t understand what the OP did. I\'ve used x86 assembly before and for that you\'d do something like this:
p
ldr should by all means work. This certainly compiles:
ldr
ldr r0, =fmtInput ldr r1, =num bl scanf .data num: .word 0 fmtInput: .string "%d"