Reply 20 of 760, by KiyoteLockeWolf
Lookie at all the pretty colors.
Did a test of the pattern generation needed to do composite colours.
Kiyote!
[EDIT]
@Dosbox authors
Do you want the actual code I've got that does this?
REM SWITCH VIDEO OUTPUT TO COLOR GRAPHICS ADAPTOR
DEF SEG=0
A=PEEK(&H410)
POKE &H410,(A AND &HCF) OR &H20
REM SWITCH TO MONOCHROME ADAPTOR
DEF SEG=0
A=PEEK(&H410):POKE &H410,A OR &H30
I know what you're thinking. Why change to the monochrome adaptor, then exit the routine? I dunno. I put both in that order in my *.BAS file, just to see if it would tickle the registers used to trigger the composite CGA. I didn't fix it since it wasn't broken, once I found out this worked in that particular manner.
In DOSBOX Dos, I've been able to run CMPOSITE.EXE once, enter BASICA, exit BASICA, then re-enter BASICA, with the COLOR BURST flag still set in local emulated memory.
This means, I'm on the right track.
I don't have a good classic game that uses composite cga to test this with. Used to,.. years ago.
Kiyote!
If it ain't borked, fix it 7 times.. Reinvent the wheel every day. Compile 8085/8086 code daily. Drink lots of instant coffee. Look both ways before cooking a turkey.