I read displaying a bitmap in Vesa-Mode and plotting pixels .
1. I tried the first one and it worked fine, displaying a purple 640*480*8 bitmap, but when I tried to plot pixels after that with this,
Code: Select all
mov edi,[ModeInfo_PhysBasePtr]
mov ecx,640*30 ; Size of screen
mov al,0xff ; This is for the color of one pixel (white)
rep stosb
2. When I call only the plotting-code instead of the bitmap code, the screen is totally black
3. When I call the code for displaying the bitmap and then call the code, which is nearly the same except
Code: Select all
add esi,edx ; start of next bmp line
dec ebp
jnz new_line
ret
Code: Select all
add esi,edx ; start of next bmp line
dec ebp
cmp ebp, 30
jbe new_line2
ret
Obviously there is something I have to reset, but I don´t know what.
Thank´s for helping in advance!!
Alex
Edit: I uploaded a picture of the problem under [3]