On 25 Feb 2008 at 14:44, Tom Watson wrote:
Really this is pretty easy (this does NO error
checking, and only accepts upper
case characters):
Okay, being a dumb ol' bit-twiddler, I couldn't resist:
(input character in A)
adi 0c0h
mov b,a
sbb a
ani 09h
add b
ani 0fh
Okay, folks--anyone got a shorter sans-jump one? One that perhaps
doesn't require an extra register? How about one that uses a DAA to
do something sneaky?
Cheers,
Chuck