Page 4 of 4 FirstFirst ... 234
Results 31 to 34 of 34
  1. #31

    Default Re: Help me in Assembly


    asa naman ang addition..
    kani one digit ni..

    epa three daw ninyo.. hehe
    like 111 + 231..

    ana three..

    ====
    jmp main


    ask db 0ah,0dh,'Input the Number and Press Enter: ',0ah,0dh,'$'

    input1 db 2,?,3 dup(20h)
    input2 db 2,?,3 dup(20h)

    main:

    mov ax, 03h
    int 10h

    lea dx, ask
    mov ah, 09h
    int 21h

    mov ah,0ah
    mov dx,offset input1
    int 21h

    mov si,offset input1
    add si,2
    mov bl,b[si]

    mov ah,0ah
    mov dx,offset input2
    int 21h

    mov di,offset input2
    add di,2
    mov bh,b[di]

    add bh,bl
    sub bh,30h
    mov ah,02
    mov dl,bh
    int 21h



    int 20h

  2. #32

    Default Re: Help me in Assembly

    Pila man ka digit imong gusto ipa add? Mag require pa user input?

  3. #33

    Default Re: Help me in Assembly

    Quote Originally Posted by daelite_mistress
    asa naman ang addition..
    kani one digit ni..

    epa three daw ninyo.. hehe
    like 111 + 231..

    ana three..

    ====
    jmp main


    ask db 0ah,0dh,'Input the Number and Press Enter: ',0ah,0dh,'$'

    input1 db 2,?,3 dup(20h)
    input2 db 2,?,3 dup(20h)

    main:

    mov ax, 03h
    int 10h

    lea dx, ask
    mov ah, 09h
    int 21h

    mov ah,0ah
    mov dx,offset input1
    int 21h

    mov si,offset input1
    add si,2
    mov bl,b[si]

    mov ah,0ah
    mov dx,offset input2
    int 21h

    mov di,offset input2
    add di,2
    mov bh,b[di]

    add bh,bl
    sub bh,30h
    mov ah,02
    mov dl,bh
    int 21h



    int 20h
    @thread starter...
    try the code above... just doublecheck the interupts used.. like if you want to display sa monitor of pc ang results..

    if sa computer nimu pa-run nga adding of two numbers, like in dos, the code will help you a lot...
    but if you imbed it in a MPU or MCU for a certain application, you need to study the interup vectors on the chip

  4. #34

    Default Re: Help me in Assembly

    I need help unsay syntax nga problem if u can help me out ill pay u right away CEBU AREA LNg txt me 09232609072

    the problem is

    input 2 digits and select an operation (/,*,-,+) mao rani nga problem ASAP ni cya tabang mo pls

  5.    Advertisement

Page 4 of 4 FirstFirst ... 234

Similar Threads

 
  1. please help me in this" vista os for internet cafe ok lang ba?
    By EnterBEN in forum Software & Games (Old)
    Replies: 46
    Last Post: 01-21-2008, 03:29 PM
  2. Replies: 0
    Last Post: 01-19-2008, 01:03 PM
  3. Help me in getting out the virus
    By mondray in forum Software & Games (Old)
    Replies: 8
    Last Post: 09-21-2007, 10:38 AM
  4. MOVED: Help me in Assembly
    By vern in forum Software & Games (Old)
    Replies: 0
    Last Post: 09-13-2007, 02:45 PM
  5. Please help me in martial arts.
    By Chalil in forum Sports & Recreation
    Replies: 11
    Last Post: 09-20-2006, 10:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top