Anybody good in easy 68k assembly?

Status
Not open for further replies.

glider_rider

Reputable
Oct 21, 2014
11
0
4,510
Read a LETTER (i.e. as a character input and not as numeric input from the
keyboard. It must be in the range 0-6. All other input must be ignored.

Once read, the letter must be printed on the terminal in so called 'banner'
format. When an '1' is typed, the following "A" equivalent is printed:

#
# #
# #
# #
#######
# #
# #

When a '2' is typed, "B" equivalent is printed.
When a '3' is typed, "C" equivalent is printed.
When a '4' is typed, "D" equivalent is printed.
When a '5' is typed, "E" equivalent is printed.
When a '6' is typed, "F" equivalent is printed.

The program should then wait for a new key to be pressed and repeat its
operation. The program execution is terminated when a '0' is typed.

In your program, you make use of the following data statements:

str
dc.b ' # '
dc.b ' # # '
dc.b ' # # '
dc.b ' # # '
dc.b ' ####### '
dc.b ' # # '
dc.b ' # # '
dc.b ' ###### '
dc.b ' # # '
dc.b ' # # '
dc.b ' ###### '
dc.b ' # # '
dc.b ' # # '
dc.b ' ###### '
dc.b ' ##### '
dc.b ' # # '
dc.b ' # '
dc.b ' # '
dc.b ' # '
dc.b ' # # '
dc.b ' ##### '
dc.b ' ###### '
dc.b ' # # '
dc.b ' # # '
dc.b ' # # '
dc.b ' # # '
dc.b ' # # '
dc.b ' ###### '
dc.b ' ####### '
dc.b ' # '
dc.b ' # '
dc.b ' ##### '
dc.b ' # '
dc.b ' # '
dc.b ' ####### '
dc.b ' ####### '
dc.b ' # '
dc.b ' # '
dc.b ' ##### '
dc.b ' # '
dc.b ' # '
dc.b ' # '

Each character consists PRECISELY of 10 columns and 7 rows. YOU ARE NOT
ALLOWED TO MODIFY THESE DATA STATEMENTS IN ANY WAY (including insertion
of extra labels).

The program consists essentially of two nested FOR loops; the inner loop
prints the ten characters in each row, and the outer loop prints the seven
rows, locating the start of each of the rows within the data statements.
 
Status
Not open for further replies.