8086 Assembly language programming posted Today 06:59 PM
(post #10)

Hey guys, i'm writing a code in assembly language using Turbo Assembler 2.0. If anybody out there is using it too then maybe you can help me with my question. ( I just hope cheeseball can read this.)

I'm creating in assembly language a game. To provide a good user interface i have a module
which invokes function 06h of BIOS int 10h to
create a window (with shadow). the width and height of the window depends on the coordinates passed into the stack. the color is also passed to the stack.

(i'll just strip the lines which gets parameters from the stack)

In assembly, I'll only invoke function 06 of int 10 like this:

module proc near
;(assume that these comment lines are the codes which get parameters
;(from the stack

mov ah, 06 ; create window
mov al, 00
mov bh, 17h ; assume that these are the actual parameters
mov cx, 0a14h
mov dx, 143dh
int 10h

ret
module endp

now, my problem is when i try to remove the window, the underlying screen data is removed too.

how do i display this window so that when i remove it, the underlying data is also preserved?
And, how do I allocate memory dynamically in assembly?


__________________
Turn on. Tune in. Drop out.