Write a MC68000 Assembly Program the fulfils the following requirement. You must write comments for each line of your code. Your program is sharing 8 logical variables (from J to Q, see below figure) with another program, where each logical variable is 1-bit and is located in D3 Register. Assume all logical variables are set to 1.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

In the programming language MC68000. 

Write a MC68000 Assembly Program the fulfils the following requirement. You must write
comments for each line of your code.
Your program is sharing 8 logical variables (from J to Q, see below figure) with another
program, where each logical variable is 1-bit and is located in D3 Register. Assume all
logical variables are set to 1.
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit o
JKLM NOPQ
• Your program should set logical variables J, and O, and clear logical variables M and N.
o Save the original logical variable to the stack before making any changes.
After the modification, your program should check if logical variables J and O are
correctly set.
o If set correctly, your program should exit.
o If not set correctly, your program should try again.
Before modifying any logical variables, you must check if the logical variable is not being
used by another program.
o Define your own test flag memory location.
Transcribed Image Text:Write a MC68000 Assembly Program the fulfils the following requirement. You must write comments for each line of your code. Your program is sharing 8 logical variables (from J to Q, see below figure) with another program, where each logical variable is 1-bit and is located in D3 Register. Assume all logical variables are set to 1. Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit o JKLM NOPQ • Your program should set logical variables J, and O, and clear logical variables M and N. o Save the original logical variable to the stack before making any changes. After the modification, your program should check if logical variables J and O are correctly set. o If set correctly, your program should exit. o If not set correctly, your program should try again. Before modifying any logical variables, you must check if the logical variable is not being used by another program. o Define your own test flag memory location.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY