30 September 2005 - 9:45SEX and Motorola CPUs
In my computer organization class, our labs involve programming a Motorola M68HC12 microcontroller. While doing my lab work today, I discovered that the CPU12’s instruction set contains a SEX instruction. The mnemonic is short for “Sign Extend into 16-bit register.” Maybe this is why my professor last semester was so obsessed with sign extension?
The SEX instruction is pretty gratuitous. It is simply an alternate mnemonic for a the register transfer instruction. However, who doesn’t like a little gratuitous SEX?
No Comments | Tags: scitech