Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   please please check my errors pc assembly language (http://www.go4expert.com/forums/check-errors-pc-assembly-language-t25413/)

fmmctg01 3Apr2011 23:11

please please check my errors pc assembly language
 
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


All times are GMT +5.5. The time now is 16:51.