delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/14/05:42:27

Message-ID: <373B48C1.1660@bellsouth.net>
From: seth <sethpark AT bellsouth DOT net>
Organization: seth
X-Mailer: Mozilla 3.0 (Win95; U)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: asm code
Lines: 18
Date: Thu, 13 May 1999 17:48:49 -0400
NNTP-Posting-Host: 209.214.79.81
X-Trace: news3.atl 926629122 209.214.79.81 (Thu, 13 May 1999 16:58:42 EDT)
NNTP-Posting-Date: Thu, 13 May 1999 16:58:42 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello, I just started trying to learn Assembler.
I have a few questions....
Is adding/subtracting ect. necessarily alot faster in Asm than in C?
Such as:
	mov ax, 5
 	mov bx, 5
	add ax, bx

Would that be faster than

	int one, two;
	one+=two;


Also, could someone give me some example code on how to add four numbers
and find the average with Asm?

thanks

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019