While programming in Z80 assembly isn't inherently difficult, in can be a little laborious... So I decided to get SDCC (Small Device C Compiler) working for runZ80.
I have a very simple ctr0 that just provides printf and getch, from the included Makefile (in the c directory) you should be able to see how to get your own code working on my simple Z80 emulator, you should read the readme.md too as there is a tiny bit of set up to do, the example c/test1.c assumes a system using the terminal plugin set to port 0x20.
In this screenshot you can see test1 running on the virtual terminal, currently there is only a blocking method to get a character, but I plan to add another function to get the number of available bytes in the terminals input buffer.