AN2121 Freescale Semiconductor / Motorola, AN2121 Datasheet - Page 41

no-image

AN2121

Manufacturer Part Number
AN2121
Description
JPEG2000 Arithmetic Encoding on StarCore SC140
Manufacturer
Freescale Semiconductor / Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN2121SC
Manufacturer:
TERIDIAN
Quantity:
40
; Initialize the address registers of the various look-up tables.
; Also set up clock
init:
; decrement r2 so when add context from bitstream, points to right index
dcb $07,$01,$10,$00,$03,$01,$0d,$00,$03,$01,$0d,$00,$03,$01,$0d,$00
dcb $03,$01,$0d,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$06,$01,$0f,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$03,$01,$0d,$00,$03,$01,$0d,$00,$03,$01,$0d,$00
dcb $03,$01,$0d,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00,$07,$01,$10,$00
dcb $07,$01,$10,$00
org p:$1000
move.l #$80030003,PCTL0
move.l #ctxt_idx,r2
move.l #ctxt_mps,r4
move.l #ip,r1
move.l #qe,r0
move.w #0,d1
move.w (r1)+,d3
move.l #CARRYOVER,d10
Appendix B. Arithmetic Encoder: Assembly Code
Freescale Semiconductor, Inc.
For More Information On This Product,
moveu.w #RENORM_THRESH,d13.l
deca r2
; the c register has overflowed into carry bit.
Go to: www.freescale.com
adda #2,r1
deca r4
; Ensure clock speed is 300MHz
; r2 is the base address of the context
; table:index
; r4 is the base address of the context
; table:MPS
; r1 points to the input bitstream of
; context/data pairs
; r0 is the base address of qe table
; C = 0, assume one block for now so
; skip the input block numbers
; pairs. Renorm threshold used again
; in arithmetic later
; This is the constant to check whether
; Number of context/data
37

Related parts for AN2121