{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HW_6_sol - was vxmrmmaa AM LDAA#$04 Num of values A 7 is...

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: was vxmrmmaa / AM LDAA #$04 ' Num of values A . » 7 is to}: 3 (if ‘3 f LDX #356000 ;Initialize pointer ’3 LDAB 0,X ;initialize max/min STAB $8000 ;with the first number LDAB 0,X STAB $8001 LOOP TSTA BEQ Done LDAB 0,X+ ; Load the next number CMPB $8000 BLO MIN ; Test the max STAB $8000 ; Save new max MIN CMPB $8001 ; Compare min BHI NEXT STAB $8001 ; Save new min NEXT DECA BRA LOOP Done continue with other instructions z: mam» a 413%? $fi$$ a fag: W?” fig}? :7; m5 flags/55$ $§w gm; 3 «k» 3 :5; i g i ...
View Full Document

{[ snackBarMessage ]}