1. arsgashaw1

    arsgashaw1 New Member

    Joined:
    Feb 20, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Please every body help me ! I'm new programmer in assembly programming ! I have a good idea on assembly programming ! I have a problem on compiling ,running so please help me how to run assembly programming using CMD (dos command ) ,and how to set the environment for running ! please am waiting soon.
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    How can we help you when you don't describe the problem?
     
  3. virxen

    virxen Active Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    28
    first of all what assembly?(MIPs32,8086.....)


    anyway
    google for ngasm

     
  4. arsgashaw1

    arsgashaw1 New Member

    Joined:
    Feb 20, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    With what assembler and linker I run the following code from Dos Command
    lOOK over the files that I attached
     

    Attached Files:

    • gas.zip
      File size:
      378 bytes
      Views:
      477
  5. arsgashaw1

    arsgashaw1 New Member

    Joined:
    Feb 20, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    pls look over the code that I attached and tell me with what assembler and Linker that I'm going to run this program.

    Code:
    hex $
    
    code segment
    main proc
    mov ax,data
    mov ds,ax
    call inpurt
    mov bl,al
    call display
    call CrLf
    Call message2
    mov ax,$4C00
    int $21
    main Endp
    input proc
    mov ah,$09
    mov dx,offset input
    int $21
    mov ah,$08
    int $21
    ret
    input Endp
    display proc
    mov ah,$02
    mov dl,bl
    mov $21
    ret
    display Endp
    CrLf proc
    
    mov ah,$02
    mov dl,$0d
    int $21
    mov ah,$02
    mov dl,$0a
    int $21
    ret
    CrLf Endp
    message2 proc
    mov ah,$02
    mov dl,bl
    inc dl
    int $21
    message2 endp
    code ends
    Stack segment stack 0400
    Data segment
    character db "Enter a character:$"
    message db "the letter you typed was:$"
    End 
     
    Last edited by a moderator: Feb 22, 2010
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I have moved the attachment code into the post.
     
  7. livinmanavalan

    livinmanavalan Banned

    Joined:
    Dec 6, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    i think i am a good programmer. and also i can help you too. but actually what is your problem. without knowing your problem how can i prefer a solution?:D
     
  8. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    The source is using a mixture of 2 syntaxes ...
    Intel syntax and Gas Syntax..

    Your code cannot be assembled..

    You have to follow 1 syntax...
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice