Working implementation for ch 7. Heavily cribbed for now. I dont like my codewriter class right now, and can definitely extract common asm patterns