Set the clobbered registers to avoid the assembler using them for something else. Fix compile errors. Fix a null termination bug. Write a hack to make the shell work.