Brought mid->asm into new codebase

Doesn't have subroutine condensing yet;
that needs to be mostly redone anyway