Implement test for 4502 extensions.
Fix numerous bugs revealed through tests, some more remain.
Fix 16-bit immediate mode.