Question

subject:assembly language emu8086 intel Write a program which can store a number which is already be...

subject:assembly language emu8086 intel

Write a program which can store a number which is already be knowned and store it in AX.At last,print by hexadecimal.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

.MODEL SMALL

.STACK 100H

.DATA

d1 dw 999

                .CODE

                                MAIN PROC FAR

                                                MOV AX,

                @DATA

                                MOV DS,

                AX

                mov ax,

                d1

                CALL PRINT

                MOV AH,

                4CH INT 21H

                MAIN ENDP

                                PRINT PROC

                mov cx,

                0 mov dx, 0 label1:

                                cmp ax,

                                0 je print1

                div bx

                push dx

                inc cx

                xor dx,

                dx

                                jmp label1

                                                print1:

                cmp cx,

                0 je exit

                pop dx

                add dx,

                7

continue:

                add dx,

                48

                mov ah,

                02h int 21h

                dec cx

jmp print1

                                                exit : ret

                                PRINT ENDP

END MAIN

Add a comment
Know the answer?
Add Answer to:
subject:assembly language emu8086 intel Write a program which can store a number which is already be...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Question: WRITE A PROGRAM IN LC-3 ASSEMBLY LANGUAGE. DO NOT ... WRITE A PROGRAM IN LC-3...

    Question: WRITE A PROGRAM IN LC-3 ASSEMBLY LANGUAGE. DO NOT ... WRITE A PROGRAM IN LC-3 ASSEMBLY LANGUAGE. DO NOT USE PYTHON, JAVA, C or C++ or OTHERS. Your task is to write a program that counts the number of 1 bits of the value stored at location given by Datal. Your program should print the count (in hexadecimal, as it is easier) along with an appropriate heading. Test your program with the following values stored in Datal: a xFFFE...

  • Intel 80x86 microprocessors 1. (%25) Write an assembly language program which asks the user to enter...

    Intel 80x86 microprocessors 1. (%25) Write an assembly language program which asks the user to enter his/her name and surname through the keyboard. After the entry: The program clears the left top quarter of the screen and displays the name at the center of that quarter. Similarly the program clears the right bottom quarter of the screen and displays the surname at the center of that quarter. For example: If your name and surname are "Al and "Velir, the following...

  • Using ARM assembly language to write a program, the program can take the full (unsigned) 10-bit...

    Using ARM assembly language to write a program, the program can take the full (unsigned) 10-bit number selected via the switches, and display its value on the 7-segment display as four hexadecimal digits. For example, the switch settings of 1010111001 would display as 02B9, and 1111101101 would display as 03ED.

  • Write an Assembly language program to: A- Store the following text " Welcome to Assembly Language" in the ROM a...

    Write an Assembly language program to: A- Store the following text " Welcome to Assembly Language" in the ROM at 200H B- Find how many e letters in this word and store the count in the RAM in location 40H Write an Assembly language program to: A- Store the following text " Welcome to Assembly Language" in the ROM at 200H B- Find how many e letters in this word and store the count in the RAM in location 40H

  • Help with this please Write an 8086 pasm program which will: Prompt the user to enter...

    Help with this please Write an 8086 pasm program which will: Prompt the user to enter an base-16 (hexadecimal) number from the keyboard. Store the number in the bx register 2) With an appropriate label, print the number in bx as a 16-bit binary value value value value. is Y or 'y' repeat from step 1). 3) With a second appropriate label, print the number in bx as an 8-digit base-4 4) With a third appropriate label, print the number...

  • Linear Search: Write a MIPS assembly language program that can search for a number that entered...

    Linear Search: Write a MIPS assembly language program that can search for a number that entered by user in an array with 20 integer numbers and prints the index of the number in the array if it is found and -1 if not found

  • it's in C programming language 3. Write a program to find out if the first two...

    it's in C programming language 3. Write a program to find out if the first two bits of an input hex number is 11and will print "the first two bits are ones" 4- Write a program that will perform the following: Check the first two numbers of an input data if they are 11 and will print "open door 1" if so, otherwise Check the last two bits of that number if they are 11 and print" Open door 2...

  • INTEL 80x86 ASSEMBLY LANGUAGE CODE Write a windows32 assembly language program that utilizes a recursive procedure....

    INTEL 80x86 ASSEMBLY LANGUAGE CODE Write a windows32 assembly language program that utilizes a recursive procedure. The main (_MainProc) procedure should: accept, from the user, a positive integer. Guard against non-positive integers being entered using a loop. call the sumseries sub-procedure using the cdecl protocol, receive the results of the sub-procedure, and display the results. The sumseries sub-procedure should: recursively find the sum of the series: 1*2 + 2*3 + 3*4 + ... + i*(i+1) (This is an iterative definition....

  • code needs to be written in c language. Write a program that prints the type of...

    code needs to be written in c language. Write a program that prints the type of the integer representation string provided by stdin. The possible types are "Decimal", "Octal", "Hexadecimal", or "Illegal". Example inputs: 118 rightarrow Decimal 074 rightarrow Octal 0xD5 rightarrow Hexadecimal cat rightarrow Illegal You can assume the input is between 1 and 9 characters (inclusive) long.

  • Write a Program in C language for: 1. Create a C program to read 7 integers...

    Write a Program in C language for: 1. Create a C program to read 7 integers and store them in an array. Next, the program is to check if the array is symmetric, that is if the first element is equal to the last one, the value of the second one is equal to the value of the last but one, and so on. Since the middle element is not compared with another element, this would not affect the symmetry...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT