Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For supporting both CP/M and DOS, you can skip over an 8080 jump instruction using a single extra byte:

80 C3 xx xx

The first instruction will be harmless on both processors, and even have the same mnemonic: it decodes as either "ADD BX,xxxx" or "ADD B"!



small correction: the first byte is 81, "ADD C" on the 8080




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: