Need help on 'as'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Everybody,

       I do not know whether this is the 
correct place to ask this question , but
still I'am going ahead with it .

  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 ES 
    mov [0],#0x41  ; ASCII value Char to be displayed 
                      ;  in 1-row & 1-column
    seg es  ; Makes next instruction execute wrt ES 
    mov [1],#0x1f  ; Attribute of the Character       
                    ;  in 1-row & 1-column
loop1: 
    jmp loop1

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

________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
       visit http://in.autos.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux