I am using a QEMU raspberry pi emulator and trying to set up reading from the STDIN given by the command line. ie "./demo3 < text.txt"
However, my code is extremely short at the moment:
.text
.global main
main:
bl getchar
bx lr
but this section alone gives me a segmentation fault, any ideas why?