Exercise_2_Answers-F09

Exercise_2_Answers-F09 - CE-320 Microcomputers I Fall B...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CE-320 Microcomputers I Fall B 2009 Exercise 2 Page 1 Exercise 2 Answers 1.a.F6 20 00 CB 0A 7B 20 00 b.CD 30 00 EC 40 c.96 20 C6 14 18 06 5A 21 d.B6 25 00 B1 25 01 2E 50 e.DC 40 83 00 01 27 9C f.18 0B 2D 15 00 g.18 09 0A 20 00 h.18 02 05 56 2.a.LDAA 5,X A6 05 b.LDAA -$0A,X A6 10 c.LDAB -$20,X E6 E1 EC d.LDAB -$9B,x E6 E1 65 e.LDX -$F0,X EC E1 10 f.LDD -$46,X EC E1 BA g.LDD $63,X EC E0 63 h.LDY $71,X ED E0 71 i.LDS $10,X EF E0 10 j.LDS -$BE,X EF E1 423.a.LDAA #$45 b.BRA $21 c.INC $1900 d.ADDA $CC,Y e.SUBD #$2000 f.DEC 0,X g.DEX h.INY i.LBEQ $1000 j.ABA CE-320 Microcomputers I Fall B 2009 Exercise 2 Page 2 4.a.$4A b.$7F c.$C7 d.$D3 e.$C100 f.$F044 g.$C1C2 h.$B124 i.$3555 j.$1B k.$0F l.$7D m.$29 n.$BFFF o.$CFBA p.$C0BE q.$B0D8 r.$3357 5.a.$CFAC b.$81EF c.$2D6A d.$C000 e.$E044 f.$C0C2 g.$B124 h.$3455 6.a.$20A0 b.$2164 c.$3FBA d.$1EAB e.$2D89 f.$2697 7.The difference between this and the previous problem is that a short branch always (BRA) is two bytes long, so the offset is applied to an address two bytes further (i.e. higher) in memory. A long branch always (LBRA) is four bytes long, and the offset is applied to an address four bytes higher in memory than the start of the branch....
View Full Document

{[ snackBarMessage ]}

Page1 / 6

Exercise_2_Answers-F09 - CE-320 Microcomputers I Fall B...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online