Question

Write an assembly language program that prints your full name on the screen. Use .ASII pseudo-op...

Write an assembly language program that prints your full name on the screen.

  • Use .ASII pseudo-op to store the characters at the top of your program
  • Use BR to branch around the characters and use STRO to output your name.
  • Comment each line except STOP and .END.
  • Cut and paste the Assembler Listing into your document
  • Paste a screen shot of the Output area of the Pep8 program

Please use the name "Levin Fi"

Assembler Listing

Screen Shot of the Output area of the Pep8 program.

Homework Answers

Answer #1

To Write an assembly language program that prints your full name on the screen.

CODING

.MODEL SMALL

.STACK 100H

.DATA

;The string to be printed

STRING DB 'Levin Fi', '$'

.CODE

MAIN PROC FAR

MOV AX,@DATA

MOV DS,AX

; load address of the string

LEA DX,STRING

;output the string

;loaded in dx

MOV AH,09H

INT 21H

;interrupt to exit

MOV AH,4CH

INT 21H

MAIN ENDP

END MAIN

COMMENTS OR EXPLANATION :

  1. You can Create an string.
  2. Load the effective or neceessary address of the string in dx by using LEA command.
  3. Now print the string by calling the interrupt with the 9H in AH.
  4. The string should be terminated by the ‘$’ sign.

OUTPUT :

Levin Fi

Note : Run the program in the MASM and use dos box to run MASM, you might also use any 8086 emulator to run the program.

Know the answer?
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
Similar Questions
Write a MIPS Assembly Language program to request a name and reflect it back to the...
Write a MIPS Assembly Language program to request a name and reflect it back to the user. The request must be "Please enter your full name:" And it should be output following "The name you entered was: '
Assembly Programming in MIPS Write a program in MIPS assembler that performs the following computations: Prompts...
Assembly Programming in MIPS Write a program in MIPS assembler that performs the following computations: Prompts the user to enter two integers and stores the smaller one in the first data memory word (with the lowest address) and the larger one in the second data memory word. Then divides the larger word by the smaller one in integer and stores the integer quotient in the third data memory word and the remainder in the fourth data memory word. Finally, it...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) Write a Java program that: Asks the user to enter his/her first name and ID. Prints the user's first name and ID in reverse order with a space between them recursively. Important notes: You should have to copy and paste the Java as your answer for this question. DON’T take screen shot for your Java Code....
Implement the following C++ expression val1 = (val2 * val3) / (val4 − 3) in assembly...
Implement the following C++ expression val1 = (val2 * val3) / (val4 − 3) in assembly language using: • 8-bit unsigned operands • 16- bit unsigned operands • 32-bit unsigned operands a- Use the MASM assembler with .Data to initialize your variables, write your code in the .code segment. Add comments explaining your code b- Modify the code to prompt the user to enter the information -use 32-bit unsigned operands only-, and show the output on the console, and dump...
Write an ARM assembly language program that counts the number of 1’s for any value in...
Write an ARM assembly language program that counts the number of 1’s for any value in R0. The program must assemble/compile in KEIL and must be able to run in the KEIL simulator. Generally, R0 may contain any value, but for purpose of this exercise, you may move 0x2345ABCD into R0. The number in R0 does not need be preserved. You may use any other registers as you need. The result, total count of 1’s in R0, should be in...
Use MARS to write and simulate a MIPS assembly language program to swap two of the...
Use MARS to write and simulate a MIPS assembly language program to swap two of the integers in an integer array. The program should include the Swap function to swap the integers and the main function to call the Swap function. Download the template file “P4_template.asm” provided on Blackboard. Add your code to this file. Do not modify any of the code provided in the file. The main function should: • Pass the starting address of the array in $a0....
Part A. Input Validation (Name your C program yourLastName_yourFirstName_Lab4a.c) 1. Place the code you developed in...
Part A. Input Validation (Name your C program yourLastName_yourFirstName_Lab4a.c) 1. Place the code you developed in Lab 2 to obtain a diameter value from the user and compute the volume of a sphere (we assumed that to be the shape of a balloon) in a new program, and implement the following restriction on the user’s input: the user should enter a value for the diameter which is at least 8 inches but not larger than 60 inches. Using an if-else...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT