News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

how does this work?

Started by LAS3R, February 14, 2005, 12:29:16 PM

Previous topic - Next topic

LAS3R

found code where guy made it had typed this!

add   al,'A'-'9'-01h

and tasm change it to

add al, 7

just wondering how "add   al,'A'-'9'-01h" can become "add al, 7"!

it's tasm source btw!

Tedd

'A' = (ascii code for letter A) 65
'9' = 57

65 - 57 - 1 = 7
No snowflake in an avalanche feels responsible.

LAS3R

oh...lol. to easy to figure out!  :toothy :U