www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/25/13:04:55

Message-ID: <3313A399.C33@bplorraine.fr>
Date: Tue, 25 Feb 1997 18:44:41 -0800
From: Maxime Viallet <Fviallet AT bplorraine DOT fr>
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: ASM

Hello !
I'm have some problem when I write inline ASM :
to put I pixel a made (in pascal) :
	mov ax,$A000
	mov es,ax
but when i do this :
	movw $0xA000,%ax\n
	movw %ax,%es\n
The program crash ! (segmentation fault , i think...)
	Can you explain me ???
With TASM or MASM you can declare procedure like :
	something proc pascal
	code
	code
	code
	something endp
and then call it from the pascal source code ,can i make it with GAS and
include my asm proc. in my C source ???
	Thanx ! (sorry for my bad english !)
		Fviallet AT bplorraine DOT fr

- Raw text -


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