More porting.
Assembles now, but some incorrect code.