Welcome back, Guest!
Register
Forgot your Password?

Hello, Guest! Welcome to Symbianize Forum.

Most of our features and services are available only to our members. So we encourage you to login or join us by registering a new account. Registration is free, fast, and simple. You only need to provide a valid email address so we can minimize spammers. As a Symbianize member you'll have the following privileges:

All that and more, so what are you waiting for, join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Results 1 to 6 of 6
  1. #1

    Read paano i-fix ang problem sa jump sa assembly language?

    I have a problem to this program. Nag-eeror kasi ang mga jump niya. Sa mga nakakaalam po nito kong paano i-fix, help naman po..ASAP...


    eTO po yong program..
    .model large
    .stack 10h
    .data
    promp db "Press any no.$"
    num db (?),'$'
    excluded db "Out of range!$"
    choose db "Select i/d:$"
    one db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 39 dup(32),1,10,13
    db 39 dup(32),1,10,13
    db 39 dup(32),1,10,13
    db 39 dup(32),1,10,13
    db 39 dup(32),1,'$'

    two db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 37 dup(32),4 dup(1),10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13
    db 37 dup(32),4 dup(1),10,13
    db 37 dup(32),1,10,13
    db 37 dup(32),1,10,13
    db 37 dup(32),4 dup(1),'$'

    three db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 37 dup(32),4 dup(1),10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13
    db 37 dup(32),4 dup(1),10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13
    db 37 dup(32),4 dup(1),'$'

    four db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),4 dup(1),10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,'$'

    five db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 37 dup(32),4 dup (1),10,13
    db 37 dup(32),1,10,13
    db 37 dup(32),1,10,13
    db 37 dup(32),4 dup(1),10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13
    db 37 dup(32),4 dup(1),'$'

    six db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),1,10,13
    db 37 dup(32),1,10,13
    db 37 dup(32),4 dup(1),10,13
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),4 dup(1),'$'

    seven db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 37 dup(32),1,4 dup (32),1,10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13,'$'

    eight db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),4 dup(1),10,13
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),4 dup(1),'$'

    nine db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 80 DUP(32)
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),1,4 dup (32),1,10,13
    db 37 dup(32),4 dup(1),10,13
    db 41 dup(32),1,10,13
    db 41 dup(32),1,10,13
    db 37 dup(32),4 dup(1),'$'

    .code
    mov ax,@data
    mov dx,ax

    mov ah,9
    lea dx,promp
    int 21h

    mov ah,7
    int 21h

    mov num,al

    cmp al,1
    je usa

    cmp al,2
    je roha

    cmp al,3
    je tatlo

    cmp al,4
    je apat

    cmp al,5
    je lima

    cmp al,6
    je anom

    cmp al,7
    je pito

    cmp al,8
    je wayo

    cmp al,9
    je sidam

    usa:
    mov ax,3
    int 10h

    mov ah,9
    lea dx,one
    int 21h

    roha:
    mov ax,3
    int 10h

    mov ah,9
    lea dx,two
    int 21h

    tatlo:
    mov ax,3
    int 10h

    mov ah,9
    lea dx,three
    int 21h

    apat:
    mov ax,3
    int 10h

    mov ah,9
    lea dx,four
    int 21h

    lima:
    mov ax,3
    int 10h

    mov ah,9
    lea dx,five
    int 21h

    anom:
    mov ax,3
    int 10h

    mov ah,9
    lea dx,six
    int 21h

    pito:
    mov ax,3
    int 10h

    mov ah,9
    lea dx,seven
    int 21h

    wayo:
    mov ax,3
    int 10h

    mov ah,9
    lea dx,eight
    int 21h

    sidam:
    mov ax,3
    int 10h

    mov ah,9
    lea dx,nine
    int 21h

    mov ah,9
    lea dx,choose
    int 21h

    mov ah,7
    int 21h

    cmp al,'i'
    je increment

    cmp al,'d'
    je decrement

    cmp al,27
    je exit

    increment:
    cmp num,1
    je roha

    cmp num,2
    je tatlo

    cmp num,3
    je apat

    cmp num,4
    je lima

    cmp num,5
    je anom

    cmp num,6
    je pito

    cmp num,7
    je wayo

    cmp num,8
    je sidam

    cmp num,9
    mov ah,9
    lea dx,excluded
    int 21h

    decrement:
    cmp num,1
    mov ah,9
    lea dx,excluded
    int 21h

    cmp num,2
    je usa

    cmp num,3
    je roha

    cmp num,4
    je tatlo

    cmp num,5
    je apat

    cmp num,6
    je lima

    cmp num,7
    je anom

    cmp num,8
    je pito

    cmp num,9
    je wayo



    exit:
    mov ah,4ch
    int 21h

    end

    Salamat po sa mga gustong makatulong...

  2. #2

    Default Re: paano i-fix ang problem sa jump sa assembly language?

    hex gamitin mo or binary sa cmp

  3. #3

    Default Re: paano i-fix ang problem sa jump sa assembly language?

    ano po bang error? 64bit kasi ako, di ko matry code mo. ang naencounter ko lang naman na error dati sa JUMP ay kapag masyado malayong lines na yung ijujump nya, ang ginawa ko, dalawang jump, parang me terminal pa.


    TS tinry ko code mo sa emu8086, etong line lang ang error,

    num db (?),'$'

    dapat after ng num db, kung string, dapat nakaqoute, "" o kaya '', pero kung number, kahit hindi na, hal yung '$', pwedeng 36 un

  4. #4

    Default Re: paano i-fix ang problem sa jump sa assembly language?

    Quote Originally Posted by genius_am14 [Link available to registered users only. Click here to register.]
    hex gamitin mo or binary sa cmp
    decimal lang po para wala na pahirap...

  5. #5

    Help Re: paano i-fix ang problem sa jump sa assembly language?

    Quote Originally Posted by Poldo [Link available to registered users only. Click here to register.]
    ano po bang error? 64bit kasi ako, di ko matry code mo. ang naencounter ko lang naman na error dati sa JUMP ay kapag masyado malayong lines na yung ijujump nya, ang ginawa ko, dalawang jump, parang me terminal pa.


    TS tinry ko code mo sa emu8086, etong line lang ang error,

    num db (?),'$'

    dapat after ng num db, kung string, dapat nakaqoute, "" o kaya '', pero kung number, kahit hindi na, hal yung '$', pwedeng 36 un
    thanks po sa pagkakaroon ng interest...as of now po mejo nagawa ko na yang project na yan kaya nga lang..1 digit lang dapat 2 digit..

    sa mga interested din po at gusto ako tulungan... try nyo tong code ko at help nyo ako i-edit pa po hanggang makuha yong desired output talaga na 2 digit ang i-iincrement and decrement sa display..

    eto po code ko yong sa 1 digit:
    TITLE final project
    .MODEL large
    .STACK 50H

    .DATA?
    promp db "Enter a number only$"
    FIR DB (?),'$'

    TTL DB " IT-225 COMPUTER ORGANIZATION WITH ASSEMBLY LANGUAGE", 10, 13
    DB " FINAL PROJECT $"

    DIS DB 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 80 DUP(32), '$'
    PMT DB "please select i/d/ESC:$"
    EXCLUDED DB "You have been reach the limit..$"

    MSG DB " BY BSIT 2/BLK.1", 10, 13
    DB " TO ENGR.RICHARD D. GARCIA,M.I.T $"

    .CODE
    MOV AX, @DATA
    MOV DS, AX

    START:

    ;CLEAR_SCREEN
    MOV AX, 3
    INT 10H

    ;TITLE_MESSAGE
    MOV AH, 9
    LEA DX, TTL
    INT 21H

    ;CREDIT_MESSAGE
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 16H
    MOV DL, 00H
    INT 10H

    MOV AH, 9
    LEA DX, MSG
    INT 21H

    ;BLACK_TEXT
    MOV AX, 0607H
    MOV BX, 0000H
    MOV CX, 0541H
    MOV DX, 000DH
    INT 10H

    ;MATRIX_DISPLAY
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    mov ah,9
    lea dx,promp
    int 21h


    FIR_INDEX0:
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 7
    INT 21H


    FIR_SKIP:
    CMP AL, 30H
    JB FIR_INDEX0

    CMP AL, 39H
    JA FIR_INDEX0

    MOV FIR, AL
    SUB FIR, 30H

    mov BL,AL

    INCR:

    SEG_1_1:
    CMP FIR, 1
    JE SEG_1_2

    CMP FIR, 4
    JE SEG_1_2

    MOV AX, 0601H ;top
    MOV BX, 0C00H
    MOV CX, 0511H
    MOV DX, 000DH
    INT 10H


    SEG_1_2:
    CMP FIR, 1
    JE SEG_1_3

    CMP FIR, 7
    JE SEG_1_3

    MOV AX, 0601H
    MOV BX, 0C00H
    MOV CX, 0811H;mid
    MOV DX, 000DH
    INT 10H


    SEG_1_3:
    CMP FIR, 1
    JE SEG_1_4

    CMP FIR, 4
    JE SEG_1_4

    CMP FIR, 7
    JE SEG_1_4

    MOV AX, 0601H
    MOV BX, 0C00H;bottom
    MOV CX, 0B11H
    MOV DX, 000DH
    INT 10H


    SEG_1_4:
    CMP FIR, 1
    JE SEG_1_5

    CMP FIR, 2
    JE SEG_1_5

    CMP FIR, 3
    JE SEG_1_5

    CMP FIR, 7
    JE SEG_1_5

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 050aH;ul
    MOV DX, 000DH
    INT 10H


    SEG_1_5:
    CMP FIR, 5
    JE SEG_1_6

    CMP FIR, 6
    JE SEG_1_6

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 0511H;ur
    MOV DX, 0011H
    INT 10H


    SEG_1_6:
    CMP FIR, 1
    JE SEG_1_7

    CMP FIR, 3
    JE SEG_1_7

    CMP FIR, 4
    JE SEG_1_7

    CMP FIR, 5
    JE SEG_1_7

    CMP FIR, 7
    JE SEG_1_7

    CMP FIR, 9
    JE SEG_1_7

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 080DH;ll
    MOV DX, 000DH
    INT 10H


    SEG_1_7:
    CMP FIR, 2
    JE FIR_DISPLAY_1

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 0811H;lr
    MOV DX, 0011H
    INT 10H

    FIR_DISPLAY_1:
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    back:

    mov ah,9
    lea dx,PMT
    INT 21H
    cur:
    MOV AH,7
    INT 21H

    cmp al,27
    je exit

    cmp al,'i'
    je increment

    cmp al,'d'
    je decrement
    jne cur

    increment:
    inc FIR

    cmp FIR,10
    JE TIGIL


    MOV AX, 3
    INT 10H

    ;BLACK_TEXT
    MOV AX, 0607H
    MOV BX, 0000H
    MOV CX, 0541H
    MOV DX, 000DH
    INT 10H

    ; MATRIX_DISPLAY
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    JMP INCR


    decrement:
    DEC FIR

    cmp FIR,0
    JE TIGIL

    MOV AX, 3
    INT 10H

    ;BLACK_TEXT
    MOV AX, 0607H
    MOV BX, 0000H
    MOV CX, 0541H
    MOV DX, 000DH
    INT 10H

    ;MATRIX_DISPLAY
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    JMP INCR


    TIGIL:
    mov ah,2
    mov dl,10
    int 21h

    mov dl,13
    int 21h

    MOV AH,9
    LEA DX,EXCLUDED
    INT 21H

    EXIT:
    MOV AH,4CH
    INT 21H

    END
    at eto naman po yong nasimulan ko na para sa 2 digit,mejo gumagana na yan..kaso malayo pa talaga sa katotohanan...sensya po kayo mahaba talaga...

    eto po siya:

    TITLE final project
    .MODEL large
    .STACK 50H

    .DATA?
    promp db "Enter a number only$"
    SEC DB 2 DUP (?)

    TTL DB " IT-225 COMPUTER ORGANIZATION WITH ASSEMBLY LANGUAGE", 10, 13
    DB " FINAL PROJECT $"

    DIS DB 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 13 DUP(32), 30 DUP (219), 10, 13
    DB 80 DUP(32), '$'
    PMT DB "please select i/d/ESC:$"
    EXCLUDED DB "You have been reach the limit..$"

    MSG DB " BY BSIT 2/BLK.1", 10, 13
    DB " TO ENGR.RICHARD D. GARCIA,M.I.T $"

    .CODE
    MOV AX, @DATA
    MOV DS, AX

    START:

    ;CLEAR_SCREEN
    MOV AX, 3
    INT 10H

    ;TITLE_MESSAGE
    MOV AH, 9
    LEA DX, TTL
    INT 21H

    ;CREDIT_MESSAGE
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 16H
    MOV DL, 00H
    INT 10H

    MOV AH, 9
    LEA DX, MSG
    INT 21H

    ;BLACK_TEXT
    MOV AX, 0607H
    MOV BX, 0000H
    MOV CX, 0541H
    MOV DX, 000DH
    INT 10H

    ;MATRIX_DISPLAY
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    FIR_DISPLAY_2:
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    SEC_INDEX0:
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 1FH
    INT 10H

    MOV AH, 7
    INT 21H

    CMP AL, 31H
    JB SEC_INDEX0

    CMP AL, 39H
    JA SEC_INDEX0

    MOV SEC[0], AL
    SUB SEC[0], 30H

    INCR:
    SEG_3_1:
    CMP SEC[0], 1
    JE SEG_3_2

    CMP SEC[0], 4
    JE SEG_3_2

    MOV AX, 0601H
    MOV BX, 0C00H
    MOV CX, 0523H
    MOV DX, 001FH
    INT 10H

    SEG_3_2:
    CMP SEC[0], 1
    JE SEG_3_3

    CMP SEC[0], 7
    JE SEG_3_3

    MOV AX, 0601H
    MOV BX, 0C00H
    MOV CX, 0823H
    MOV DX, 001FH
    INT 10H

    SEG_3_3:
    CMP SEC[0], 1
    JE SEG_3_4

    CMP SEC[0], 4
    JE SEG_3_4

    CMP SEC[0], 7
    JE SEG_3_4

    MOV AX, 0601H
    MOV BX, 0C00H
    MOV CX, 0B23H
    MOV DX, 001FH
    INT 10H

    SEG_3_4:
    CMP SEC[0], 1
    JE SEG_3_5

    CMP SEC[0], 2
    JE SEG_3_5

    CMP SEC[0], 3
    JE SEG_3_5

    CMP SEC[0], 7
    JE SEG_3_5

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 051FH
    MOV DX, 001FH
    INT 10H

    SEG_3_5:
    CMP SEC[0], 5
    JE SEG_3_6

    CMP SEC[0], 6
    JE SEG_3_6

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 0523H
    MOV DX, 0023H
    INT 10H

    SEG_3_6:
    CMP SEC[0], 1
    JE SEG_3_7

    CMP SEC[0], 3
    JE SEG_3_7

    CMP SEC[0], 4
    JE SEG_3_7

    CMP SEC[0], 5
    JE SEG_3_7

    CMP SEC[0], 7
    JE SEG_3_7

    CMP SEC[0], 9
    JE SEG_3_7

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 081FH
    MOV DX, 001FH
    INT 10H

    SEG_3_7:
    CMP SEC[0], 2
    JE SEC_DISPLAY_1

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 0823H
    MOV DX, 0023H
    INT 10H

    SEC_DISPLAY_1:
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H


    SEC_INDEX1:
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 25H
    INT 10H

    MOV AH, 7
    INT 21H

    CMP AL, 13
    JNE SEC_SKIP

    MOV BL, SEC[0]
    MOV SEC[1], BL
    MOV SEC[0], 0

    jmp BACK

    SEC_SKIP:

    CMP AL, 30H
    JB SEC_INDEX1

    CMP AL, 39H
    JA SEC_INDEX1

    MOV SEC[1], AL
    SUB SEC[1], 30H

    INCR1:
    SEG_4_1:
    CMP SEC[1], 1
    JE SEG_4_2

    CMP SEC[1], 4
    JE SEG_4_2

    MOV AX, 0601H
    MOV BX, 0C00H
    MOV CX, 0529H
    MOV DX, 0025H
    INT 10H

    SEG_4_2:
    CMP SEC[1], 0
    JE SEG_4_3

    CMP SEC[1], 1
    JE SEG_4_3

    CMP SEC[1], 7
    JE SEG_4_3

    MOV AX, 0601H
    MOV BX, 0C00H
    MOV CX, 0829H
    MOV DX, 0025H
    INT 10H

    SEG_4_3:
    CMP SEC[1], 1
    JE SEG_4_4

    CMP SEC[1], 4
    JE SEG_4_4

    CMP SEC[1], 7
    JE SEG_4_4

    MOV AX, 0601H
    MOV BX, 0C00H
    MOV CX, 0B29H
    MOV DX, 0025H
    INT 10H

    SEG_4_4:
    CMP SEC[1], 1
    JE SEG_4_5

    CMP SEC[1], 2
    JE SEG_4_5

    CMP SEC[1], 3
    JE SEG_4_5

    CMP SEC[1], 7
    JE SEG_4_5

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 0525H
    MOV DX, 0025H
    INT 10H

    SEG_4_5:
    CMP SEC[1], 5
    JE SEG_4_6

    CMP SEC[1], 6
    JE SEG_4_6

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 0529H
    MOV DX, 0029H
    INT 10H

    SEG_4_6:
    CMP SEC[1], 1
    JE SEG_4_7

    CMP SEC[1], 3
    JE SEG_4_7

    CMP SEC[1], 4
    JE SEG_4_7

    CMP SEC[1], 5
    JE SEG_4_7

    CMP SEC[1], 7
    JE SEG_4_7

    CMP SEC[1], 9
    JE SEG_4_7

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 0825H
    MOV DX, 0025H
    INT 10H

    SEG_4_7:
    CMP SEC[1], 2
    JE SEC_DISPLAY_2

    MOV AX, 0604H
    MOV BX, 0C00H
    MOV CX, 0829H
    MOV DX, 0029H
    INT 10H

    SEC_DISPLAY_2:
    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    back:

    mov ah,9
    lea dx,PMT
    INT 21H
    cur:
    MOV AH,7
    INT 21H

    cmp al,27
    je quit

    cmp al,'i'
    je increment

    cmp al,'d'
    je gets
    jne cur
    gets:
    jmp decrement

    quit:
    jmp exit

    increment:
    inc SEC[1]

    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    JMP INCR1

    cmp SEC[1],9
    JE DAGDAG

    DAGDAG:
    MOV SEC[1],0

    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    JMP INCR1

    ADD SEC[0],1

    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    JMP INCR
    loop increment
    decrement:
    DEC SEC[1]

    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    JMP INCR1

    CMP SEC[1],0
    JE BAWAS

    BAWAS:
    MOV SEC[1],9

    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    JMP INCR1

    SUB SEC[0],1

    MOV AH, 02H
    MOV BH, 00H
    MOV DH, 05H
    MOV DL, 0DH
    INT 10H

    MOV AH, 9
    LEA DX, DIS
    INT 21H

    JMP INCR
    loop decrement
    exit:
    MOV AH,4CH
    INT 21H

    END

    kung masolve nyo po agad mas maganda po kasi bukas na deadlinne ng project namin na yan...thanks po sa lahat ng interesado na makatulong...

  6. #6

    Default Re: paano i-fix ang problem sa jump sa assembly language?

    gandang hapon sa lahat...

    pasok kayo dito....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •