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

  • SEARCH
  • Home
  • 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 7639987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:33:53+00:00 2026-05-31T08:33:53+00:00

I am learning assembly programming using 8086 emu (Its a software program . Emulator

  • 0

I am learning assembly programming using “8086 emu” (Its a software program . Emulator .) I am evaluating a basic expression –

a=b+c-d*e

My problem is that when I am using int 21h to take in values , Its taking only single digit (character) as input for each variable .

Also after the evaluation , I am unable to print the value stored in the variable ‘a’ on the output screen .

Can anyone give a solution for both the problems ?

  • 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-05-31T08:33:54+00:00Added an answer on May 31, 2026 at 8:33 am

    For the first part (reading in a string until a sentinel key, e.g. the enter key is hit), you’ll write a loop to do that.

    A function for parsing the ASCII decimal string into a register value is also needed.

    For printing to screen, you’ll need:

    • Either int 21h, AH = 02h ( http://www.ctyme.com/intr/rb-2554.htm ) one character at a time
    • Or int 21h, AH = 09h ( http://www.ctyme.com/intr/rb-2562.htm ) one whole string

    You’ll also need an itoa function (http://www.cplusplus.com/reference/clibrary/cstdlib/itoa/) to convert a register value into a multi-digit ASCII string.

    The URLs is part of an assembly programming tutorial called Ralf Brown’s Interrupt List (RBIL).

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

Sidebar

Related Questions

Most people suggest that learning assembly is essential, its important to know the underlying
I'm learning assembly and I have a very basic loop here segment .data msg:
For the purpose of learning I recently looked at an existing assembly (using Reflector)
Learning a lot in my few years of programming that the best projects are
I am a DSP, embedded software programmer, looking to improve my assembly language programming
I'm write a simple graphic-based program in Assembly for learning purpose; for this, I
Where could one start learning assembly language from? Could you suggest some place that
I was about to start learning x64 assembly using this tutorial (series) but setting
I am learning assembly and I have this function that contains some lines I
I'm learning SPARC assembly and I have to create a script that extracts a

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.