phat code If the code and the comments disagree, then both are probably wrong.
Main

Projects

Downloads

Articles

Links

Forum

 

View Message

Back to Messages
Rel Wed Apr 12 2006 at 10:32 pm
Phat!
 
 
Yo plaz!  Have you had any experience with int21,48h?

I'm trying to allocate memory by calling this

;64000 bytes
;vga_seg is a word value

mov bx, 4000   
mov ah, 48h
int 21h

mov vga_seg, ax

Now when I blit in the upper half of the screen, it crashes.

LIke 
mov es, vga_seg
mov di, 10
mov es:[di], al

it crashes.

Looking at the garbage on screen as I've tried to Pcopy the whole of 64000 bytes to 0a000h, the top half has some data that I know nothing about and the lowe half is empty.

Any thoughts?

Thanks!
 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.