delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/18/20:20:21

Date: Thu, 18 Dec 1997 17:19:52 -0800 (PST)
Message-Id: <199712190119.RAA12121@adit.ap.net>
Mime-Version: 1.0
To: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: hexidecimal confusion

At 07:43  12/17/1997 +0100, Thomas Demmer wrote:
>Ionicis wrote:
>> 
>> Is there a difference between 16h and 0x16?  Can you use 16h instead of
>> 0x16 for things such as interrupt specifiers (int86(16h, &regs,
>> &regs))?  Or must you use 0x16?  Is there a difference between the first
>> form and the latter form (C-wise, not value-wise)?  Some clarification
>> on this would be greatly appreciated.
>> 
>> "Ionicis"
>The first form is illegal, the second one is fine. 16h is sometimes
>used in documentations and printed texts to indicate a hex number.
>0x16 is what the C compiler understands. In PASCAL you would say
>$16.
The form 16h is used in many DOS assemblers. Interrupt documentation often
uses this form since much interrupt programming is done in assembly.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019