First post, by Goalatio
Hi, I am trying to display the 256 colorset usable by the BIOS in DOSBOX 0.73
It works.. but only for half of the colors. The other half is a giant mass of blinking squares. This works anywhere outside of DOSbox. Here's the code.
[org 0100h]
[section .text]
mov bl,01
MAIN:
cmp word [counter],255
je DONE
cmp byte [keep_neat],16
je ENDLINE
mov cx,1
mov al,0
mov ah,9
int 10h
mov dx,blank
call WRITE
inc bl
inc byte [keep_neat]
inc word [counter]
jmp MAIN
DONE:
mov ah,4ch
mov al,0
int 21h
WRITE:
mov ah,9
int 21h
ret
ENDLINE:
mov dx,eol
call WRITE
mov byte [keep_neat],0
jmp MAIN
[section .data]
counter dw 0
blank db "0", "$"
keep_neat db 0
eol db 13, 10, "$"
Compiled via NASM16
It's passion that drives me.