Please do the problem 4 in Z80 assembly language Write a short program in 68K as
ID: 3697573 • Letter: P
Question
Please do the problem 4 in Z80 assembly language
Write a short program in 68K assembly language that adds together the word values stored in memory location $O0OA3OO through memory location $O0OOA30F (inclusive) and stores the result in memory location $0O0OA310. You should submit your listfile of your program. It is not necessary to submit an electronic copy of your program. Just the listfile, properly formatted. Problem #4 Repeat problem #3 in Z80 assembly language. The problem will be slightly different. The numbers to be added are byte values located in memory starting at 0100H and going to 010FH (inclusive). Store the result in memory location 0110H.Explanation / Answer
Problem#3-
MOVE.L #$000A300, A0
MOVE.L #$0000A30F, B0
ADD.L A0, B0
MOVE.L #B0, $0000A310
Problem#4-
LD X, $0100H
LD Y, X
LD X, $010FH
ADD X, Y
LD $0110H, X
RST 08