From: aho450s AT nic DOT smsu DOT edu (Tony O'Bryan) Newsgroups: comp.os.msdos.djgpp Subject: Re: Simple Question Date: Thu, 13 Mar 1997 21:29:35 GMT Organization: Southwest Missouri State University Lines: 11 Message-ID: <33287136.3084592@ursa.smsu.edu> References: <5g8poh$q7u AT Chaos DOT es DOT co DOT nz> NNTP-Posting-Host: forseti.i81.smsu.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On 13 Mar 1997 11:51:45 GMT, nizea AT es DOT co DOT nz (Dave Smith) wrote: >I have a simple question (I hope) for some of you out there :) >How in C (esp. GCC) do I find the high order of a byte, in Turbo >pascal I would do this... a := Hi($1234) which would return ($12), >how can I do this in DJGPP? To get the high byte of a 16-bit word in C: a = (0x1234 & 0xff00) >> 8;