Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/color_processor.asm @ 681:6e456a6398e0
Hardware4 support
author | heinrichsweikamp |
---|---|
date | Fri, 25 Jan 2013 18:00:49 +0100 |
parents | 8b75ba28d641 |
children | 9e82de8dc12d |
comparison
equal
deleted
inserted
replaced
680:c6220d340684 | 681:6e456a6398e0 |
---|---|
51 ; F1 F2 F3 04 is 0x1235 pixels of color 0. | 51 ; F1 F2 F3 04 is 0x1235 pixels of color 0. |
52 ; | 52 ; |
53 ;Temporary overlay (in bank 0), ACCESS area | 53 ;Temporary overlay (in bank 0), ACCESS area |
54 CBLOCK 0x000 | 54 CBLOCK 0x000 |
55 img_colors | 55 img_colors |
56 img_width:2 ; SHOULD be @1, because of PLED_box_write | 56 img_width:2 ; SHOULD be @1, because of DISP_box_write |
57 img_pixelsL | 57 img_pixelsL |
58 img_pixelsH | 58 img_pixelsH |
59 img_pixelsU | 59 img_pixelsU |
60 img_countL | 60 img_countL |
61 img_countH | 61 img_countH |
98 | 98 |
99 ;---- Send window command -------------------------------------------- | 99 ;---- Send window command -------------------------------------------- |
100 clrf img_width+1 ; x2 on width, for the true box size. | 100 clrf img_width+1 ; x2 on width, for the true box size. |
101 rlcf img_width+0 | 101 rlcf img_width+0 |
102 rlcf img_width+1 | 102 rlcf img_width+1 |
103 call PLED_box_write | 103 call DISP_box_write |
104 AA_CMD_WRITE 0x22 | 104 AA_CMD_WRITE 0x22 |
105 | 105 |
106 ;---- Decode pixels -------------------------------------------------- | 106 ;---- Decode pixels -------------------------------------------------- |
107 color_image_loop_xy: | 107 color_image_loop_xy: |
108 ; Get pixel count | 108 ; Get pixel count |