Exercise_3_Answers-F09

# Exercise_3_Answers-F09 - CE-320 Microcomputers I Fall B...

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

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

View Full Document
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 3 Page 1 Exercise 3 Answers1. Addr Contents Source =00000007 lowbits equ %00000111 =00003000 org \$3000 3000 05 1F 02 26 data dc.b \$05,\$1F,\$02,\$26 =00001000 org \$1000 1000 07 digit dc.b \$7 1001 03 length dc.b 3\$ 1002 +0001 count ds.b 1 1003 3000 array dc.w data =00002000 org 2000\$ 2000 FE 1003 ldx array 2003 79 1002 clr count 2006 B6 1001 ldaa length 2009 27 10 loop beq finish 200B E6 00 ldab 0,x 200D C4 07 andb #lowbits 200F F1 1000 cmpb digit 2012 26 03 bne skip 2014 72 1002 inc count 2017 08 skip inx 2018 43 deca 2019 20 EE bra loop 201B 3F finish swi Symbols: array *00001003 count *00001002 data *00003000 digit *00001000 finish *0000201b length *00001001 loop *00002009 lowbits *00000007 skip *00002017 CE-320 Microcomputers I Fall B 2009 Exercise 3 Page 2 2. =00000046 limit equ 70 =00001008 org \$1008 =00001008 org \$1008 1008 +0002 length ds.b 2 100A 3200 grades dc.w \$3200 100C +0001 count ds.b 1 =00002000 org \$2000h 2000 FE 100A ldx grades...
View Full Document

## This document was uploaded on 11/12/2009.

### Page1 / 3

Exercise_3_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
Ask a homework question - tutors are online