- emul: - subroutine don't work with cs_disasm_iter, as this one moves sequentially through the code, so we have to disassemble up the current position of the EIP. We could also just decode the whole thing. - main.pas: - generated code for functions should not intermix with space for variables