delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/27/22:36:54

Message-ID: <000b01bed8a1$9ac9c000$17b9fea9@rincevent>
From: "conrad" <conrad AT citeweb DOT net>
To: <djgpp AT delorie DOT com>
Subject: 13h forerver (heyy)
Date: Wed, 28 Jul 1999 04:33:04 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Reply-To: djgpp AT delorie DOT com

I tried another way yo copy my buffer to the screen :
this prog just freezes my pc, so take care =)
ps: I have no errors... just an EXE that crashes :)
________
buffer=(unsigned char *)malloc(320*200);
setvga();

info.size = 320*200;
info.address = 0xa0000;
__dpmi_physical_address_mapping (&info);
my_ds = __dpmi_allocate_ldt_descriptors (1);
__dpmi_set_segment_base_address (my_ds, info.address);
__dpmi_set_segment_limit (my_ds, (320*200+5)|0xfff);

*(buffer+320*100+160)=1;      // yazoo :)
movedata( _my_ds(), (int) buffer, _dos_ds, 0, 320*200); 
}
________

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019