Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7743715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:36:21+00:00 2026-06-01T09:36:21+00:00

I have the following assignment: Write a complete 8086 program to perform the calculator

  • 0

I have the following assignment:

Write a complete 8086 program to perform the calculator functions: ADD/SUB/DIV/MUL.
When the user presses “=” your program should display the result. Only the numbers from 0-9 are input.

    ones  db ?
    tens  db ?

    mov   ah,1
    int   21h
    add   al,30H
    mov   tens, al
    mov   ah,1       
    int   21H 
    mov   dl,al
    cmp   dl, '+'
    je    addition

addition:
    mov   ah,1    
    int   21h
    mov   bl,al   
    mov   ones,al

I have to do it by adding 30h to each number then subtracting it. Can someone explain how I can do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:36:22+00:00Added an answer on June 1, 2026 at 9:36 am

    0x30 is the 0 sign in ASCII so if you want to print a number between 0-9 you should add 0x30 to the value to make it an ‘0’ character. If you read from the terminal you would read 0x30 instead of 0 so if you want to make calculation with it you would need to subtract 0x30 to convert an ‘0’ character to the value 0

    http://en.wikipedia.org/wiki/ASCII

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class assignment where I have to write a program that will
I was given the following HomeWork assignment, Write a program to test on your
For class I have an assignment: Write a C++ program that will output the
For a programming assignment, we have the following requirements: It needs to be a
I have following situation: I have loged user, standard authentication with DB table $authAdapter
This is part of an assignment to complete a word search. I have to
I'm doing an assignment that requires me to complete the following block of code:
I was assigned the following project for my VB.Net programming course: Write a program
I have created a method in my java assignment to write into a file
I have the following code in an Asp.Net user control: Me.pnlAddComment.Visible = MyBase.Associate.IsAgent() Me.lblRating.Visible

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.