error: invalid effective address. rest of code seems to be organized quite well