Message board for the users of flat assembler.
> DOS > Create Palette in macro?
In TASM, the below is a legal declaration in the data segment. Is there any equivalent structure in FASM?
Palette LABEL BYTE
We can set the palette colors directly like below
mov dx,3c8h ; set color index port
out dx,al ; output color index 0
inc dx ; inc dx = 3C9h, color write port
...blah out this out that.....
but if I'm trying palette rotation, I don't know how to get the values back into a var so I can increase the color index and set the palette again.
Any help is appreciated!
gee that's a large beetle
i wonder if it's poisonous?
|17 Oct 2018, 01:47||
You can do this in fasm:
Palette repeat 32 db %-1 /4,%-1,