reorganize posix assembly code