....
this code do his job but very slowly
void putpixel(int x, int y, byte color) {
asm mov ah,0x0c;
asm mov al,color;
asm mov cx,x;
asm mov dx,y;
asm mov bx,0x01;
Type: Posts; User: bazooka joe
....
this code do his job but very slowly
void putpixel(int x, int y, byte color) {
asm mov ah,0x0c;
asm mov al,color;
asm mov cx,x;
asm mov dx,y;
asm mov bx,0x01;
compiler: turbo c
os: dos
this is the result:
http://uploaded.fresh.co.il/3f65febb34c60223.rar
What wrong here?
#include <conio.h>
#include <dos.h>
#define WIDTH 640
#define HEIGHT 480
typedef unsigned char byte;