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
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.
- Spring '09