Menu

Question Word Value Byte Longword Data Memory Location 4000 Program Loop Back Beginning St Q43902118

QUESTION: What is the WORD VALUE (not byte, or longword) of thedata in memory location $4000 when the program is just about toloop back to the beginning and start over again? Please describehow you got the answer as well. (For example, you can describe howyou analyzed the code segments, or how you traced the code segmentswith debug tools)

* Beginning of EQUates section, just like #define in C addr1 EQU $4000 addr2 EQU $4001 data2 EQU SA7FF data3 EQU $5555 data4

* Beginning of EQUates section, just like #define in C addr1 EQU $4000 addr2 EQU $4001 data2 EQU SA7FF data3 EQU $5555 data4 EQU $0000 data5 EQU 4678 data6 EQU %01001111 data7 EQU %00010111 Beginning of code segment. This is the actual assembly language instructions. ORG $400 This pseudo op code tells the assembler here • The program will run in memory start MOVE.W #data2, DO – Load DO MOVE.B #data6, D1 – Load D1 MOVE.B #data7, D2 * Load D2 MOVE.W #data3, D3 * Load D3 MOVEA.W #addr1, AO Load address register MOVE.B D1, (AC)+ Transfer byte to memory MOVE.B D2, (AO)+ Transfer second byte MOVEA.W #addr1, A1_Load address AND.W D3, (A1) *Logical AND Stop here. The next instruction shows how a label is used JMP start . This instruction keeps the program loping forever END $400 This pseudo op-code tells the assmbler where the program source code dns and where to load the program in memory *End of the program * Put program code here SIMHALT halt simulator Put variables and constants here END START last line of source Show transcribed image text * Beginning of EQUates section, just like #define in C addr1 EQU $4000 addr2 EQU $4001 data2 EQU SA7FF data3 EQU $5555 data4 EQU $0000 data5 EQU 4678 data6 EQU %01001111 data7 EQU %00010111 Beginning of code segment. This is the actual assembly language instructions. ORG $400 This pseudo op code tells the assembler here • The program will run in memory start MOVE.W #data2, DO – Load DO MOVE.B #data6, D1 – Load D1 MOVE.B #data7, D2 * Load D2 MOVE.W #data3, D3 * Load D3 MOVEA.W #addr1, AO Load address register MOVE.B D1, (AC)+ Transfer byte to memory MOVE.B D2, (AO)+ Transfer second byte MOVEA.W #addr1, A1_Load address AND.W D3, (A1) *Logical AND Stop here. The next instruction shows how a label is used JMP start . This instruction keeps the program loping forever END $400 This pseudo op-code tells the assmbler where the program source code dns and where to load the program in memory *End of the program * Put program code here SIMHALT halt simulator Put variables and constants here END START last line of source

Expert Answer


Answer to QUESTION: What is the WORD VALUE (not byte, or longword) of the data in memory location $4000 when the program is just a…

OR