Rev 675 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 675 | Rev 676 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | tx_control_data_size = 22 |
1 | tx_control_data_size = 26 |
2 | tx_no_show_text = 00000001b |
2 | tx_no_show_text = 00000001b |
- | 3 | tx_text_and_background = 00000010b |
|
3 | tx_redraw_all = 10000000b |
4 | tx_redraw_all = 10000000b |
4 | tx_redraw_all_off = 01111111b |
5 | tx_redraw_all_off = 01111111b |
5 | tx_special_redraw_on = 00000100b |
6 | ;tx_special_redraw_on = 00000100b |
6 | tx_special_redraw_off = 11111011b |
7 | ;tx_special_redraw_off = 11111011b |
Line 7... | Line 8... | ||
7 | 8 | ||
8 | ;**************************************************** |
9 | ;**************************************************** |
9 | ;********************craete Text********************** |
10 | ;********************craete Text********************** |
10 | ;**************************************************** |
11 | ;**************************************************** |
Line 93... | Line 94... | ||
93 | jne no_special_message_for_text |
94 | jne no_special_message_for_text |
94 | 95 | ||
Line 95... | Line 96... | ||
95 | xor ebx,ebx |
96 | xor ebx,ebx |
96 | mov bl,[Text.type] |
97 | mov bl,[Text.type] |
97 | and bl,tx_special_redraw_on |
98 | and bl,activate_trap |
98 | test bl,bl |
99 | test bl,bl |
99 | jz no_special_message_for_text |
100 | jz no_special_message_for_text |
Line 100... | Line 101... | ||
100 | 101 | ||
101 | or [Text.type],tx_redraw_all |
102 | or [Text.type],tx_redraw_all |
Line 102... | Line 103... | ||
102 | and [Text.type],tx_special_redraw_off |
103 | and [Text.type],deactivate_trap |
Line 103... | Line 104... | ||
103 | 104 | ||
104 | no_special_message_for_text: |
105 | no_special_message_for_text: |
Line 125... | Line 126... | ||
125 | jz no_redraw_text_ |
126 | jz no_redraw_text_ |
126 | 127 | ||
Line 127... | Line 128... | ||
127 | and [Text.type],tx_redraw_all_off |
128 | and [Text.type],tx_redraw_all_off |
Line -... | Line 129... | ||
- | 129 | ||
128 | 130 | ||
129 | mov esi,dword Text |
131 | mov esi,dword Text |
130 | mov edi,[PointerForText] |
132 | mov edi,[PointerForText] |
131 | add edi,control_header_size |
133 | add edi,control_header_size |
132 | mov ecx,2 |
134 | mov ecx,2 |
Line -... | Line 135... | ||
- | 135 | rep movsb |
|
- | 136 | ||
- | 137 | mov ecx,[Text.color] |
|
- | 138 | ||
- | 139 | xor eax,eax |
|
- | 140 | mov al,[Text.type] |
|
- | 141 | and al,tx_text_and_background |
|
- | 142 | test al,al |
|
- | 143 | jz no_background_color |
|
- | 144 | ||
- | 145 | mov edi,[Text.background_color] |
|
- | 146 | or ecx,01000000000000000000000000000000b |
|
- | 147 | ||
133 | rep movsb |
148 | no_background_color: |
134 | 149 | ||
135 | mov eax,4 |
150 | mov eax,4 |
136 | mov ebx,[Text.x] |
151 | mov ebx,[Text.x] |
137 | shl ebx,16 |
- | |
138 | add ebx,[Text.y] |
152 | shl ebx,16 |
139 | mov ecx,[Text.color] |
153 | add ebx,[Text.y] |
140 | mov edx,[Text.pointer] |
- | |
141 | mov esi,[Text.length] |
154 | mov edx,[Text.pointer] |
Line 142... | Line 155... | ||
142 | mov edi,[pointer2+8] |
155 | mov esi,[Text.length] |
Line 143... | Line 156... | ||
143 | mcall |
156 | mcall |