From: egashira AT ms DOT washington DOT edu (Scott Egashira) Newsgroups: comp.os.msdos.djgpp Subject: Re: Inline assembler with parameters Date: 25 Sep 1996 18:14:54 GMT Organization: University of Washington Lines: 24 Message-ID: <52bsqu$2g4@nntp1.u.washington.edu> References: <32489A06 DOT 3E14 AT magna DOT com DOT au> <3248E443 DOT 1A15 AT gbrmpa DOT gov DOT au> NNTP-Posting-Host: hilbert1.ms.washington.edu NNTP-Posting-User: egashira To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp > > Firstly, how do I represent HEX and binary numbers. Normally I would do > > somthinge like 10h(for hex) and 1011001b(for binary). I also > I use 0x10 = 16 decimal Use 0b0000 for binary. > You need TWO % signs to access the registers. ie: > movw %0, %%ax; > movb $0, %%ah; > int 0x10; Note though -- you only need two % signs if you're using extended asm (ie, using the ':' to designate input/output/clobbered registers). Scott - Scott Egashira ----------------------------------------------------------- "Sometimes I wish I was asleep / And you were just another sheep..." - "Help Yourself", The Posies ----------------------------------------------- egashira AT ms DOT washington DOT edu -