Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Assembly Scroll-Down Problem
09-23-2012, 09:31 AM #1
- Join Date
- Sep 2012
- Thanked 0 Times in 0 Posts
Assembly Scroll-Down Problem
I am currently developing a game in assembly, and have a serious problem - TASM won't let me draw a pixel on the down-right corner of the window (being 39X24, since i'm using mode 13h\4h). Whenever a pixel is about to be drawn at that spot, the window scrolls down and doesn't draw the pixel anywhere at all.
The problem is not related to the graphic mode I use, as I tried several others with no success. It also have nothing to do with anything included in the game itself, because even when I tried to draw a single pixel there, unrelated to the game, the window still scrolled down.
This is my code for putting the pixel on the screen:
mov dL, 39 mov dh, 24 xor bx, bx mov ah, 2 int 10h mov dl,254 mov ah, 2 int 21h