error a2074 while assembling

Discussion in 'Assembly Language Programming (ALP) Forum' started by spkenn5, Feb 20, 2010.

  1. spkenn5

    spkenn5 New Member

    Joined:
    Dec 16, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    somewhere over the rainbow
    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
     

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