mirror of
https://github.com/elliotnunn/sys7.1-doc-wip.git
synced 2024-12-13 11:29:15 +00:00
47 lines
1.1 KiB
Plaintext
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
|