Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/utils/view/view_gifset.a @ 1912:37fd74e6fad8
Now assembles with rma, uses os9defs.d in c3
author | boisy |
---|---|
date | Fri, 11 Nov 2005 12:41:12 +0000 |
parents | b7fb6a9aead4 |
children |
line wrap: on
line source
* * Setup for GIF * * Globals * SetGIF -- Initialization. Reserves tables, sets format * ifp1 use os9defs.d endc psect view_gifset_a,0,0,0,0,0 * * GIF initialization * Since GIF requires such large tables, we don't allocate them * statically, but instead request them from the operating system at * run time. * giftablesize equ 4096*3 3 bytes, 2^12 entries for 12-bit code size gifstacksize equ 4096 Stack for reversing the pixel strings from table SetGIF: pshs a,b,x tst <format If format already set, just ignore this. bne SetGIF1 sta <format Set format code. ldd #giftablesize+gifstacksize Allocate the memory lbsr malloc stx <giftable leax giftablesize+gifstacksize,x stx <gifstack SetGIF1 puls a,b,x,pc * * Return memory reserved by SetGIF. * EndGIF: lbsr unmalloc rts endsect