First post, by Goalatio
Created a new command for DOSbox.. it's a variant of the command prompt's "Color" command.
Note: Does not support intense colors
Code:
[org 0100h][section .text]mov bl,0x80mov bx,0x82mov si,bxlodsbcmp al,'"'jne errormain:lodsbshl al,4mov [digit_tens],allodsbshl al,4shr al,4mov [digit_ones],alxor al,almov al,[digit_tens]add al,[digit_ones]mov [colors],allodsbcmp al,'"'jne errordisplay_color:mov ah,2mov dh,0mov dl,0int 10hmov ah,9mov bl,[colors]mov cx,16000mov al,0int 10hjmp exiterror:mov ah,9mov dx,errmsgint 21hexit:mov ah,4chmov al,0int 21h[section .data]digit_tens db 0digit_ones db 0
colors db 0errmsg db 'Invalid syntax. Use doscolor "##".', 13, 10, "$"
Screenshots:


I will release the program on request.
It's passion that drives me.

