please please check my errors pc assembly language

Discussion in 'Programming' started by fmmctg01, Apr 3, 2011.

  1. fmmctg01

    fmmctg01 New Member

    Joined:
    Mar 31, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Given Date Definition:
    .DATA
    AW DW 1324 H
    BW DW 03AF H

    AB DB 3FH
    BB DB 0A3H


    Write, compile, link,and execute under debugger code to add AW and BW, subtract AW-BW and BW-AW, ADD AB and BB and subtract AB-BB and BB-AB.
    Multiply (AW.BW), (AB.BB) as signed and unsigned numbers.Divide (AW/BW) and (BB/AB) as signed and unsinged numbers.After every arithmetic operation write down in .ASM. tile the result and values in flags C,Z,S,O. After ary division the ratio, and remainder comprise the result.
    Original .ASM
    Turn in update .ASM(with result from TD)
    also on the .LST file

    my code:

    TITLE CS14PGM5: DEBUGGER
    ; MY NAME IS (Name)
    .MODEL SMALL
    .STACK 100H
    .DATA
    AW DW 1324H
    BW DW 03AFH
    AB DB 3FH
    BB DB 0A3H

    .CODE
    LAB PROC
    MOV AX,BW
    ADD AW,AX
    MOV AX,AW
    MOV BX,BW
    SUB AX,BX
    MOV BX,BB
    ADD AB,AX//error
    MOV AX.AB/error
    MOV BX,BB//error
    SUB AB,BB//error
    mov ax,AW//error
    imul BW;
    mov ax,AW
    mul BW;
    mov ax,AB
    imul BB;//error
    mov ax,AB
    mul BB;//error
    mov ax,AW
    cwd
    idiv BW;
    mov ax,AW
    cwd
    div BW;

    LAB ENDP
     

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