Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 18th, 2010, 10:28 PM   #1
spkenn5
Newbie
 
spkenn5's Avatar
 
Join Date: May 2006
Location: PA, USA
Posts: 4
Rep Power: 0 spkenn5 is on a distinguished road
Send a message via MSN to spkenn5
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:

INCLUDE \Irvine\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

Last edited by Ancient Dragon; Feb 18th, 2010 at 10:54 PM. Reason: replaced icode tags with code tags
spkenn5 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:09 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC