Logo 
Search:

Assembly Language Articles

Submit Article
Home » Articles » Assembly Language » Homework HelpRSS Feeds

Program which gives +, -, /, * of 2 8 bit numbers

Posted By: Raimond Fischer     Category: Assembly Language     Views: 3747

Write an application which gives +, -, /, * of 2 8 bit numbers.

Code for Program which gives +, -, /, * of 2 8 bit numbers in Assembly Language

.model small

.data
     num1 db 10
     num2 db 7

.code
     mov ax,@data
     mov ds,ax
     mov ax,0000

     ;add
     mov al,num1
     add al,num2

     ;sub
     mov al,num1
     sub al,num2

     mov ax,0000
     ;mul
     mov al,num1
     mul num2
     
     mov ax,0000
     ;div
     mov al,num1
     div num2
end
  
Share: 


Didn't find what you were looking for? Find more on Program which gives +, -, /, * of 2 8 bit numbers Or get search suggestion and latest updates.

Raimond Fischer
Raimond Fischer author of Program which gives +, -, /, * of 2 8 bit numbers is from Frankfurt, Germany.
 
View All Articles

Related Articles and Code:


 

Other Interesting Articles in Assembly Language:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!