Rev 23 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 23 | Rev 25 | ||
---|---|---|---|
Line 136... | Line 136... | ||
136 | ; This function requires: |
136 | ; This function requires: |
137 | ; dx = Pointer to zero terminated string |
137 | ; dx = Pointer to zero terminated string |
138 | ; cl = Color |
138 | ; cl = Color |
139 | mov ah, 0Eh |
139 | mov ah, 0Eh |
140 | print_color_string_again: |
140 | print_color_string_again: |
141 | mov al, 0 |
- | |
142 | mov bx, dx |
141 | mov bx, dx |
143 | cmp [bx], al |
- | |
144 | je print_color_string_end |
- | |
145 | mov al, [bx] |
142 | mov al, [bx] |
- | 143 | cmp al, 0 ; is the character zero? then we are done |
|
- | 144 | je print_color_string_end |
|
146 | mov bl, cl |
145 | mov bl, cl |
147 | int 10h |
146 | int 10h |
148 | add dx, 1 |
147 | add dx, 1 ; go to next character |
149 | jmp print_color_string_again |
148 | jmp print_color_string_again |
150 | print_color_string_end: |
149 | print_color_string_end: |
151 | ret |
150 | ret |
152 | print_color_string ENDP |
151 | print_color_string ENDP |
153 | 152 |