I am writing my first Forth (on ARM). I want it on bare metal, since I think that is the whole point of Forth. However, I was unable to find information and examples on how to write KEY, EMIT and friends (essentially, handle the keyboard) without Linux syscalls. I also tried to read a bootloader source (U-Boot), but it's clearly out of my depth.
Can you please help me write a keyboard handler loop and REPL in bare metal ARM assembly? something like that, but for ARM. I am using a Cortex-A8 CPU (ARMv7).