Logo 
Search:

Assembly Language Articles

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

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

Posted By: Charlotte Brown     Category: Assembly Language     Views: 1919

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.

Charlotte Brown
Charlotte Brown author of Program which gives +, -, /, * of 2 8 bit numbers is from London, United Kingdom.
 
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!