X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fxlib%2Fxpoint.asm;h=f6bed9612dc7c4264cfc9a8f281d3dc6c8b0eab8;hb=1454b6951e065e83af5b24e84b68382da63949ee;hp=a2be8bfe5dcbc3b04a3c08e73af787d0f31e09b9;hpb=8758c96397cd391df9f496193bc0c9ebce721b33;p=16.git diff --git a/16/xlib/xpoint.asm b/16/xlib/xpoint.asm index a2be8bfe..f6bed961 100755 --- a/16/xlib/xpoint.asm +++ b/16/xlib/xpoint.asm @@ -33,7 +33,7 @@ include xpoint.inc ; ; -_x_put_pix proc +_x_put_pix proc ARG X:word,Y:word,PgOfs:word,Color:word push bp ;preserve caller's stack frame mov bp,sp ;point to local stack frame @@ -41,7 +41,8 @@ _x_put_pix proc mov ax,[_ScrnLogicalByteWidth] mul [Y] ;offset of pixel's scan line in page mov bx,[X] - shr bx,2 ;X/4 = offset of pixel in scan line + shr bx,1 ;X/4 = offset of pixel in scan line + shr bx,1 ;X/4 = offset of pixel in scan line add bx,ax ;offset of pixel in page add bx,[PgOfs] ;offset of pixel in display memory mov ax,SCREEN_SEG @@ -100,8 +101,3 @@ _x_get_pix proc ret _x_get_pix endp end - - - end - - \ No newline at end of file