HI, I want to create a small .com program using the tiny memory model, but I don't know how to access video ram (in text mode) to draw some ascii "images".
I'm writting stuff to vram using pointers like this:
Then TILE_MAP[0] is the first character, and TILE_MAP[1] its colors, but that pointer does not work in the tiny model.
I guess print functions work because they use some bios calls to write to vram, but I can't use that for my code.... Well maybe I can, but I don't want to use them for the moment.
So how can I point to VRAM in the tiny model?
Thanks!
I'm writting stuff to vram using pointers like this:
Code:
unsigned char *TILE_MAP = (unsigned char *)0xB8000000L; // this points to VRAM
Then TILE_MAP[0] is the first character, and TILE_MAP[1] its colors, but that pointer does not work in the tiny model.
I guess print functions work because they use some bios calls to write to vram, but I can't use that for my code.... Well maybe I can, but I don't want to use them for the moment.
So how can I point to VRAM in the tiny model?
Thanks!