Assembly text colors
I'm doing an iso file in assembly and I want to add color to the text (in this case: red). Does anyone know how to do it? [BITS 16] [ORG 0x7C00] jmp main main: mov si, string ; si=string call printstr jmp $ printstr: lodsb ; al=&si[0] cmp al,0 ;FLAGS = 0 jnz print ret print: mov ah,0Eh int 10h jmp printstr string db "HELLO WORLD!",13,10,0 times 510 - ($-$$) db 0 dw 0xAA55 As a preliminary advice, always setup the segment registers that your bootloader depends on. Here, because of lodsb together with [ORG 0x7C00] , you must set DS=0 . Best also make sure the direction flag DF is in a known