X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Jacky Luk" 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: NNTP-Posting-Host: pcd605137.netvigator.com 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 Hi, 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 "asmdefs.inc" .text .globl start 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 .data .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 ICQ:140681957 Messenger:luckiejacky AT hotmail DOT com http://home.netvigator.com/~luckie luckie AT netvigator DOT com luckiejacky AT hotmail DOT com