Consider the following example program that uses labels. You will perform two-pa
ID: 673101 • Letter: C
Question
Consider the following example program that uses labels. You will perform two-pass assembly to produce a list file, with machine code to left and source code to the right. Determine if the beq instruction will branch or not. Explain your answer Write what the list file looks like after you completed the first pass Give the symbol table, that is, list the labels and address value assigned to each Write the final list file. Write after each instruction write the addressing mode and effective address, but for branch instructions write the target addressExplanation / Answer
in the programme the first ORG $4000
thats is byte at location 4000 so no code generate after this ORG $4000 that is set origin
start addressing in 003b
send data byte x
beq instruction to loop back becuase bit is not set
change the value
commnads DC.B
that allocate byte for storage intialize values $c4
byte allocaton to set origin FFFE system reset(RESET)
and the define the exect location and word and start
1)in this strat porsition 003b after that the bit is not set and also the reslut back is in zero
ORG $4000
start ldaa $3b move data 003b
anda RomAdx when and operation done
get the result is zero
beq done beacuse
two registers are equal
list adress object label opcode operand comments
0000 DATA EQu $0000 sratrt DATA
4000 proram EQu $4000 start program
fffe RESET EQU $FFFE RESET VECTOR
c4 Regiter base
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.