Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   error a2074 while assembling (http://www.go4expert.com/forums/error-a2074-assembling-t21057/)

spkenn5 20Feb2010 11:46

error a2074 while assembling
 
hi guys im trying to do my assignment and found such error. i wonder if any of you can help me on this one.

here's the code:
Code:

INCLUDE Irvine16.inc
.data
int1 WORD 5000h
int2 WORD 2000h
int3 WORD 1000h
finalVal WORD ?


.code
main PROC
       
        mov                ax,int1                ; starting with 5000
        sub                ax,int2                ; subtracting 2000 from 2000
        sub                ax,int3                ; subtracting another 1000
        mov                finalVal,ax        ; store the result of subtraction
        call        DumpRegs        ; display the registers
       
        exit
main ENDP

END main

I'm supposed to subtract 3 integers using only 16-bit registers.

thanks


All times are GMT +5.5. The time now is 22:11.