I couldnt get it to work with ah=0ch, but it did point me in the right direction to find that
mov ah,08h
int 21h
works like a charm. Thanks for your help!
If there is an edit button here I couldn't find it. Anyway, I wrote the values for ah above incorrectly... when ah = 1, the bios will not wait; when it is 0, it will wait for a key to be pressed.
My classmate and I are working on a pong game for our final project in our assembly class this semster... it's completely finished, the one problem we have is getting the input. We use the 16h interrupt (ah = 0) to see if a key was pressed in order to move a paddle. The problem comes after...
Yes, you are correct... here is the working code for drawing a pixel (assembler used was NASM):
[ORG 0100h] ; set code start at 100h (COM file)
[SECTION .text] ; code section follows
START:
mov ax,13h ; move the number of the mode to ax
int 10h ; and enter the mode...
So, I can get into mode 13h and use BIOS interrupts to handle drawing pixels, but it seems to be pretty slow. After doing a bit of internet research, I have read that it would be faster to do it in memory by using the equation
"Mem [VGA:X+(Y*320)]=Color;
where VGA is the starting point $a000...
For my midterm project our instructor gave us a graphical program in qbasic that he wants us to translate into assembly. I've got pretty much everything figured out, how to initialize graphics mode and how to put a pixel where I want it. What I need now is some way to find the sine of certain...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.