z80-as: Factor out the file opening into a util funciton
Format the code
z80-as: Clean up the main loop