Search code examples
colorstasm

tasm 1.4 color code orange instead of yellow


    mov ah,06h 
    mov bh,60h; - its for the color yellow it shows orange
    mov ch,7
    mov cl,6
    mov dh,7
    mov dl,6
    int 10h

this is the pic https://www.zeta-uploader.com/en/openfile?hash=1248851038&rel=1248851038.png&r=https%3a%2f%2fwww.zeta-uploader.com%2fen&s=397015302


Solution

  • You need the high intensity bit of the color turned on. The value you need is 0xe0.

    See https://en.wikipedia.org/wiki/BIOS_color_attributes