makefile entry and script for automatically attaching gdb to qemu
optimize register usage and fix indexing on actual_word