Exercise_3_Questions-F09

Exercise_3_Questions-F09 - limit equ 70 org $1008 length...

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

View Full Document Right Arrow Icon
CE-320 Microcomputers I Fall B 2009 Exercise 3 Page 1 Do NOT use a calculator on this assignment. You will not be allowed to use one on the test or quizzes. Exercise 3 Questions 1. Convert the program below to a listing file. Include a column for addresses, a contents column, and a symbol table at the end. lowbits equ %00000111 org $3000 data dc.b $05,$1F,$02,$26 org $1000 digit dc.b $7 length dc.b $3 count ds.b 1 array dc.w $3000 org $2000 ldx array clr count ldaa length loop beq finish ldab 0,x andb #lowbits cmpb digit bne skip inc count skip inx deca bra loop finish swi
Background image of page 1

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

View Full DocumentRight Arrow Icon
CE-320 Microcomputers I Fall B 2009 Exercise 3 Page 2 2. Convert the program below to a listing file. Include a column for addresses, a contents column, and a symbol table at the end.
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: limit equ 70 org $1008 length ds.b 2 grades dc.w $3200 count ds.b 1 org $2000 ldx grades clr count ldab #limit ldy length again beq done ldaa 0,x cba bhs skip inc count skip inx dey bra again done swi CE-320 Microcomputers I Fall B 2009 Exercise 3 Page 3 3. Convert the program below to a listing file. Include a column for addresses, a contents column, and a symbol table at the end. org $1000 string dc.w $3000 array ds.w 1 arrlen dc.w 0200 endarr ds.w 1 found ds.w 1 org $2000 ldd array addd arrlen subd #2 std endarr ldx string ldy array loop cpy endarr beq done ldaa 0,y cmpa 0,x bne next ldaa 1,y cmpa 1,x bne next ldaa 2,y cmpa 2,x bne next sty found ldy endarr bra loop next iny bra loop done swi...
View Full Document

This document was uploaded on 11/12/2009.

Page1 / 3

Exercise_3_Questions-F09 - limit equ 70 org $1008 length...

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