Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-23-2012, 09:31 AM   PM User | #1
Clayman
New to the CF scene

 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Clayman is an unknown quantity at this point
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:
Code:
mov dL, 39
mov dh, 24
xor bx, bx
mov ah, 2
int 10h
mov dl,254
mov ah, 2
int 21h
Does anyone knows what could be wrong?
Clayman is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:59 PM.


Advertisement
Log in to turn off these ads.