public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* bcc question
@ 2002-05-26  1:25 Ken Martwick
  2002-05-26 12:03 ` Harry Kalogirou
  2002-05-28 19:14 ` Robert de Bath
  0 siblings, 2 replies; 3+ messages in thread
From: Ken Martwick @ 2002-05-26  1:25 UTC (permalink / raw)
  To: Linux 8086

How does one write inline assembly code in "bcc" to move
a register value to a "C" variable?  The following code
is acceptable to "bcc", but "ld86" fails with something
about undefined variables.  I couldn't find any examples.
 
--------------------------------------------------------
 
int main()
	{
	int codeseg, datseg;
 
	#asm
	push	cs
	pop	ax
	mov	codeseg,ax
	push	ds
	pop	ax
	mov	datseg,ax
	#endasm
     
--------------------------------------------------------
 
Ken Martwick
     



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-28 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-26  1:25 bcc question Ken Martwick
2002-05-26 12:03 ` Harry Kalogirou
2002-05-28 19:14 ` Robert de Bath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox