boot3/QuickDraw/PictUtilities/puPopular.a
Elliot Nunn 5b0f0cc134 Bring in CubeE sources
Resource forks are included only for .rsrc files. These are DeRezzed into their data fork. 'ckid' resources, from the Projector VCS, are not included.

The Tools directory, containing mostly junk, is also excluded.
2017-12-26 10:02:57 +08:00

47 lines
1.1 KiB
Plaintext

;
; 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