flat assembler
Message board for the users of flat assembler.
Index
> DOS > Colored String Output |
Author |
|
Tomasz Grysztar 08 Apr 2006, 19:18
These simple routines are from the "kelvar" example (you can find it in the "Examples" section of this website):
Code: display_character: ; al = character ; bl = color xor bh,bh mov cx,1 mov ah,9 int 10h mov ah,0Eh int 10h ret display_text: ; ds:si - text ; bl = color xor bh,bh mov cx,1 .display: lodsb or al,al jz .end cmp al,0Dh je .type cmp al,0Ah je .type mov ah,9 int 10h .type: mov ah,0Eh int 10h jmp .display .end: ret |
|||
08 Apr 2006, 19:18 |
|
TDCNL 08 Apr 2006, 20:26
Yes I've looked at the kelvar with a bootup floppy, very nice engine you wrote Tomasz
Thanks for the little code snippet, I'm going to experiment. (I'm new to DOS, before I only programmed in Win32) _________________ :: The Dutch Cracker :: |
|||
08 Apr 2006, 20:26 |
|
TDCNL 09 Apr 2006, 13:48
I've sorted the INT 10h out now with the Ralph Brown Interrupt list, now I completely understand the routine
Thanks again Tomasz _________________ :: The Dutch Cracker :: |
|||
09 Apr 2006, 13:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.