linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Prblem with AT&T
@ 2002-08-08  7:31 Anticipating a Reply
  2002-08-08  8:02 ` Frederic Marmond
  2002-08-08 16:04 ` Maciej Hrebien
  0 siblings, 2 replies; 10+ messages in thread
From: Anticipating a Reply @ 2002-08-08  7:31 UTC (permalink / raw)
  To: Assembly Linux

Hi All !

  I have got the below 16 bit code which is 
in Intel Syntax . 

----------- INTEL SYNTAX CODE ------------------------

entry start 

start: 
	mov ah,#0x03 ; read cursor position. 
	xor bh,bh 
	int 0x10 
	mov cx,#26 ; length of our beautiful string. 
	mov bx,#0x0007 ; page 0, attribute 7 (normal) 
	mov bp,#mymsg 
	mov ax,#0x1301 ; write string, move cursor 
	int 0x10 
	
	loop1: jmp loop1 
	
mymsg: 
	.byte 13,10 
	.ascii "Handling BIOS interrupts"


---------------------------------------------

I am trying to write to the above code in 
AT&T format as given below . 

 But I get the error in "ld" . 

sect2.o: In function `_start':
sect2.o(.text+0xd): relocation truncated to fit:
R_386_16 data

  
-------------AT&T SYNTAX --------------------


.code16

.align 4

.data

mymsg: 
	.byte 13,10 
	.ascii "Handling BIOS interrupts"

.text

.globl _start 

_start: 
	movb $0x03,%ah   # read cursor position. 
	xor  %bh,%bh
 
	int  $0x10 

	movw $24,%cx     # length of our beautiful string. 
	movw $0x0007,%bx # page 0, attribute 7 (normal) 
	movw $mymsg,%bp 
	movw $0x1301,%ax # write string, move cursor 

	int  $0x10 
	
loop1: 
        jmp loop1 
	
----------------------------------------------

   Please help me how to resolve this .

Regards 

________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
       visit http://in.autos.yahoo.com

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

end of thread, other threads:[~2002-08-16  4:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-08  7:31 Prblem with AT&T Anticipating a Reply
2002-08-08  8:02 ` Frederic Marmond
2002-08-08  9:28   ` Anticipating a Reply
2002-08-08 16:04 ` Maciej Hrebien
2002-08-10  4:41   ` Anticipating a Reply
2002-08-10 11:47     ` Maciej Hrebien
2002-08-10 19:35     ` Maciej Hrebien
2002-08-14  6:35       ` Anticipating a Reply
2002-08-14 18:40         ` Maciej Hrebien
2002-08-16  4:55           ` Anticipating a Reply

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).