Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/aa_wordprocessor.asm @ 260:bde83cac971f
BUGFIX bb13 : deco_calc_desaturation_time() should reset TBLPTR Upper register.
author | JeanDo |
---|---|
date | Sun, 10 Apr 2011 18:19:42 +0200 |
parents | cb055a7d75f3 |
children | 6e456a6398e0 |
comparison
equal
deleted
inserted
replaced
259:cb95722a81a1 | 260:bde83cac971f |
---|---|
49 ; Available general purpose registers: | 49 ; Available general purpose registers: |
50 ; PRODH, PRODL (needed for array indexing) | 50 ; PRODH, PRODL (needed for array indexing) |
51 ; FSRx 12bits. Usefull as RAM pointers. | 51 ; FSRx 12bits. Usefull as RAM pointers. |
52 ;============================================================================= | 52 ;============================================================================= |
53 ; Temporary variables are overlayed in bank 0 ACCESS, used also by C-code | 53 ; Temporary variables are overlayed in bank 0 ACCESS, used also by C-code |
54 ; (p2_deco), MPLAB math abd stdlib libraries. | 54 ; (p2_deco), MPLAB math and stdlib libraries. |
55 | 55 |
56 CBLOCK 0x000 | 56 CBLOCK 0x000 |
57 aa_flags ; Various flags for aa_wordprocessor | 57 aa_flags ; Various flags for aa_wordprocessor |
58 aa_width:2 ; Width in pixels (0..319) | 58 aa_width:2 ; Width in pixels (0..319) |
59 aa_bitlen ; Count of pixels when decoding bitmaps. | 59 aa_bitlen ; Count of pixels when decoding bitmaps. |
60 aa_start:2 ; PROM ptr to start of encoded bitmap | 60 aa_start:2 ; PROM ptr to start of encoded bitmap |
61 aa_end:2 ; and end of it. | 61 aa_end:2 ; and end of it. |
62 aa_temp:2 ; Current color, divided by 2 or 4 | 62 aa_temp:2 ; Current color, divided by 2 or 4 |
63 ENDC | 63 ENDC |
64 | 64 |
65 ; Flags allocation: | 65 ; Flags allocation: |
66 #define aa_antialias aa_flags,0 | 66 #define aa_antialias aa_flags,0 |
67 #define aa_color_quart aa_flags,1 | 67 #define aa_color_quart aa_flags,1 |