First post, by jomalin
I have a game that does this (assembler code) to set the video mode:
mov ah,00 (set video mode)
mov al,13h (VGA, 320x200, 256 colors)
INT 10
I want to extract the palette.
I know i can use Dosbox to save a .PNG with palette inside, but this palette it is not the original because in VGA, each component (R, G, B) is a byte that has a 6 bits value (from 0 to 63 + two 0's) and in the PNG palette, these 6 bits values are converted to 8 bits values by Dosbox when saving the PNG.
Using the Dosbox debugger, there is the command MEMDUMPBIN that makes dumps from a memory address to a file.
So the question is, what it is the address i must pass to MEMDUMPBIN where the VGA palette starts?
THANKS