Can any one convert the below function to Assembly language. I am not able to do calculations since I only know 16-bit calculations or addressing. But this program uses 32-bit calculations and memory addressing. Please help! Thankyou in advance.
//Putpixel function for 256 Color SVGA 640x480 VESA mode.
void putpixel(unsigned int x,unsigned int y,unsigned char color)
long p =(long)(y) * 640 + (long)(x);
char p2 =p >>16;
if( p2 != lastwrite) setwritebank( p2 );
*((char far *)0xA0000000 + p) = color;