Please if you are not a programmer or computer scientist, do not send me anything
The system that we are using is nasm. the file extension should be chess.asm
You only allowed to use the basic functions in NASM: including:
add mov sub mul div push pop lea call extern printf
cmp je inc ret
you are also not allowed to use for loops or while loops and any external functions except the String cat code and printf that are provided in the file.
Please continue in the code written after agree. All the files will be provided then
Lab #6: Printing a Chessboard
All source Code must be uploaded in your CMPE 310 BOX AND DEMO to TA before leaving lab.
You should complete this lab individually. When you have completed the assignment, raised your
hand to get TA’s attention, so that you can demonstrate your program to the TA and get your lab signed
off before leaving class.
Reading/reference material
• NASM tutorial
Concepts
Illustrate the importance developing skills in writing new code.
Description: The objective of this project is to simply type up a program consisting of a series of output
statements with alternating patterns of blanks and asterisks.
I encourage you to be creative and write the program in a manner that allows the design of the chessboard to
be modified easily. It is easy to make a changeable chessboard if the design is built up using string variables.
You MUST use the printf and strcat functions. DO NOT USE LOOPS.
Problem Statement: UMBC is hosting a chess tournament, and the organizers of the tournament want
to record the final positions of the pieces in each game on a sheet of paper with a chessboard preprinted
on it. Your job is to write a program to preprint these pieces of paper. The chessboard is an eight-by-
eight pattern of squares that alternate between black and white, with the upper-left square being
black. You need to print out squares of dark characters (spaces) and light characters (such as *) in in this
pattern to form the chessboard below.
**** All Source Code and Screenshot must be uploaded in your CMPE 310 BOX I created for
you.***
HTV