Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a x64 Windows YASM/NASM Assembly Language program to implement the following program specifications. 1. Use console (keyboard) input with the C-library function, scanf() or

image text in transcribed
Write a x64 Windows YASM/NASM Assembly Language program to implement the following program specifications. 1. Use console (keyboard) input with the C-library function, scanf() or any other function of your choosing, to read in your Name (max 14 characters) as a string value at runtime. 2. The characters read by scanf() should be stored in a variable/buffer in your programs' .data segment until needed for output later in your program. 3. Design the Diamond pattern shown above. Center your finished Diamond pattern on a virtual 40-character wide screen (use for "padding"). 4. Each line of "Stars", should be created one character at a time (a "Star" or a ) by your code, and the Diamond pattern stored in a single buffer to be printed later. 5. On Line 10 of the Diamond pattern, your code should insert your Name (entered in Step 1) into the output buffer -so that your Name appears centered within the whitespace on that line. 6. Once your Name is inserted into Line 10, proceed to write the rest of the Diamond pattern into your buffer. 7. Your program code should generate and output a Diamond pattern similar to the Diamond pattern shown above, following, but not printing, the directives shown to the right of the Diamond pattern. 8. Print your completed Diamond pattern to the terminal screen using only one call to the C-library function, printf( or any other function of your choosing. 9. Make a SCREEN CAPTURE from ebe, the command-prompt, -or- Windows 10 terminal; of the finished Diamond pattern your program creates with your NAME inserted into Line 10. Submit this graphic image along with your .asm file. 10. Use appropriate Loops, Compares, Conditional and /or unconditional Jump instructions, etc. to perform the Logic necessary to implement your program solution to satisfy these specifications. 11. Declare all necessary labels, variables, constants, buffers, etc. in your programs' .data and .bss (Block Started by Symbol) segments for storing input data, output titles /sub-titles, messages /prompt text, and intermediate results

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pre Algebra Practice Workbook The Most Comprehensive Review Of Pre Algebra

Authors: Reza Nazari

2024th Edition

1637195591, 978-1637195598

More Books

Students also viewed these Mathematics questions

Question

What are DNA and RNA and what is the difference between them?

Answered: 1 week ago

Question

Why do living creatures die? Can it be proved that they are reborn?

Answered: 1 week ago