;\r
;\r
\r
-_x_put_pix proc \r
+_x_put_pix proc\r
ARG X:word,Y:word,PgOfs:word,Color:word\r
push bp ;preserve caller's stack frame\r
mov bp,sp ;point to local stack frame\r
mov ax,[_ScrnLogicalByteWidth]\r
mul [Y] ;offset of pixel's scan line in page\r
mov bx,[X]\r
- shr bx,2 ;X/4 = offset of pixel in scan line\r
+ shr bx,1 ;X/4 = offset of pixel in scan line\r
+ shr bx,1 ;X/4 = offset of pixel in scan line\r
add bx,ax ;offset of pixel in page\r
add bx,[PgOfs] ;offset of pixel in display memory\r
mov ax,SCREEN_SEG\r
ret\r
_x_get_pix endp\r
end\r
-\r
-\r
- end\r
-\r
-\1a
\ No newline at end of file