; ; File: puPopular.a ; ; Contains: Assembly routines for the popular color finding algorithm for the picture utilities package. ; ; Written by: Dave Good. ; ; Copyright: © 1990 by Apple Computer, Inc., all rights reserved. ; ; Change History (most recent first): ; ; <2> 8/1/90 DDG Fixed the dispatch selector to go by ones, instead of twos. ; <1> 7/31/90 DDG first checked in ; ; To Do: ; MACHINE MC68000 CASE OBJ ;---------------------------------------------------------------------------------------------------- PopularDispatch PROC EXPORT IMPORT INITPOPULARMETHOD IMPORT RECORDPOPULARCOLORS IMPORT CALCPOPULARTABLE IMPORT KILLPOPULARMETHOD lsl.l #2,D0 jmp dispatchTable(D0.w) ; jump into jump table dispatchTable jmp INITPOPULARMETHOD ; selector 0 jmp RECORDPOPULARCOLORS ; selector 1 jmp CALCPOPULARTABLE ; selector 2 jmp KILLPOPULARMETHOD ; selector 3 ENDPROC ;---------------------------------------------------------------------------------------------------- END