linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* newbie question on gnu 'as'
@ 2002-07-30 11:59 Anticipating a Reply
  2002-07-30 17:24 ` Bruno N. F. Pacheco
  2002-07-30 21:34 ` Emanuele Altieri
  0 siblings, 2 replies; 9+ messages in thread
From: Anticipating a Reply @ 2002-07-30 11:59 UTC (permalink / raw)
  To: Assembly Linux

Hi Everybody,

        I have got a small piece of Assembly code ,
which writes a character "A" on the screen .

  The below program is compiled and written 
to the boot sector of a floppy. It compiles
using the command :

	as86 boot.s -o boot.o
	ld86 -d boot.o -o boot 

   I want to rewrite it in AT&T syntax and
want to use GNU "as" assembler to compile it .
I tried doing it ,but with no success .

  Can anybody please help me rewite the
below code in AT&T syntax and tell me how
to compile & link it ?

   Thanks in Advance .

With Best Regards


THE CODE :
------------


entry start 

start: 
       mov ax,#0xb800 ; Video Memory address is 0xb800
  
       mov es,ax      ; Video Memory is made as Extra
Segment
       seg es         ; Makes next instruction execute
wrt Extra Segment 
       mov [0],#0x41  ; ASCII value of the Character
to be displayed 
                      ;  in 1-row & 1-column
       seg es         ; Makes next instruction execute
wrt Extra Segment 
       mov [1],#0x1f  ; Attribute of the Character to
be displayed
                      ;  in 1-row & 1-column
                      ; 0x1f represents White
Character on a Blue Background
loop1: 
       jmp loop1


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

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <3D47BC4C.2050001@eprocess.fr>]
[parent not found: <1028179746.1936.35.camel@italia>]

end of thread, other threads:[~2002-08-01 12:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-30 11:59 newbie question on gnu 'as' Anticipating a Reply
2002-07-30 17:24 ` Bruno N. F. Pacheco
2002-07-30 21:34 ` Emanuele Altieri
2002-07-31  5:16   ` Anticipating a Reply
2002-07-31  7:55     ` newbie question on gnu 'as' => explaination about the why (for really newbie ;-)) Frederic Marmond
2002-07-31 10:09       ` Anticipating a Reply
2002-07-31 11:31         ` Frederic Marmond
     [not found] <3D47BC4C.2050001@eprocess.fr>
2002-08-01  4:43 ` Anticipating a Reply
     [not found] <1028179746.1936.35.camel@italia>
2002-08-01 12:09 ` 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).