Mail Archives: djgpp/2002/04/15/10:46:46

X-Authentication-Warning: mailnull set sender to djgpp-bounces using -f
From: "Jacky Luk" <luckie AT netvigator DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Another GAS problem
Date: Mon, 15 Apr 2002 22:28:35 +0800
Organization: IMS Netvigator
Lines: 43
Message-ID: <a9eobf$>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

   I have posted on this question in this arena before. In GAS, how do u
load the segment address into ES when dealing with BIOS interrupts like the
13h ? as u know, interrupt 13h requires me to load the es register with the
.text segment value and bx with the offset... for instance:

#include ""

.globl start
 movb $0x2, %ah
 movb $0x1, %al
 movb $0x1, %cl
 movb $0x0, %dl
 movw bootbuffer, %bx  <--- I knew this one already
                                             movw -4(%ebp), %ebx
 movw .data, %es  <-- but what about this?
 int $0x13
 movb $0x4c,%ah
 int $0x21

.globl bootbuffer .byte 512 dup (0)

Always wear a grin on your face :)
Ha ha ha ha ha.... ha ha ha ha ha... ha ha ha ha

Mr. Jacky Luk

Messenger:luckiejacky AT hotmail DOT com
luckie AT netvigator DOT com
luckiejacky AT hotmail DOT com

- Raw text -

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