Question

Consider the following AVR Assembly Language Code which is passed through an assembler.

.include "m324Adef.inc"
    jmp RESET
    jmp HANDLER_1

.dseg
var1: .BYTE 2
var2: .BYTE 6


.cseg
const: .DB 0xAA, 0xCC, 0xDD

reset:
    ldi ZL, low(var1)
    ldi ZH, high(var1)
    ldi r17, 0xBB
    st Z, r17
    ldi ZL, low(const<<1)
    ldi ZH, high(const<<1)
    lpm
    jmp mainloop
.dseg
var3: .BYTE 4
.cseg
.org 0x15
mainloop:
    ldi r20, 0xF0
    ...

Determine the segments and values of each of the following symbols. (Enter the segment as either "cseg" or "dseg" - without the quotes. Enter the values as decimal integers.).

Symbol Segment Value var1 var3 reset const mainloop

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Sy mbe segment va lue (deciml Var dsrg 2 var dseg resct cseg 2yD dseg (dofa segment) - Vamables ane declared ontains vaniablesy thybelg to tade tegrrent BYTE indk cates untigned integer SBYT indicates sned inter indk ates var has unigned inte vayz BYhas 16 bits 000000 oO ZL-8brt Const e/ bits z ZH二 00000000 2L - Lotwer order lett shif 2 L brtomes o 1 10 10 0000000 01 11010

Add a comment
Know the answer?
Add Answer to:
Consider the following AVR Assembly Language Code which is passed through an assembler. .include "m324Adef.inc"     jmp RESET     jmp HANDLER_1 .dseg var1: .BYTE 2 var2: .BYTE 6 .cseg cons...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT