forked from brmlab/brmbar-github
reorganization
This commit is contained in:
parent
bdd9f6ac92
commit
fd6e33a390
11 changed files with 19 additions and 11 deletions
35
dos/gfx.c
Normal file
35
dos/gfx.c
Normal file
|
@ -0,0 +1,35 @@
|
|||
#include "gfx.h"
|
||||
|
||||
void init_graphics() {
|
||||
#asm
|
||||
mov al, #0x13
|
||||
mov ah, #0x0
|
||||
int 0x10
|
||||
#endasm
|
||||
}
|
||||
|
||||
void put_pixel(x, y, color)
|
||||
int x;
|
||||
int y;
|
||||
char color;
|
||||
{
|
||||
x = x + y*320;
|
||||
#asm
|
||||
mov ax, #0xa000
|
||||
mov es, ax
|
||||
mov al, _put_pixel.color[bp]
|
||||
mov di, _put_pixel.x[bp]
|
||||
seg es
|
||||
mov [di], al
|
||||
#endasm
|
||||
|
||||
}
|
||||
|
||||
void deinit_graphics() {
|
||||
#asm
|
||||
mov al, #0x12
|
||||
mov ah, #0x0
|
||||
int 0x10
|
||||
#endasm
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue