Message-Id: <1.5.4.32.19960609091738.0066e974@mail.telepac.pt> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 09 Jun 1996 10:17:38 +0100 To: owner-djgpp-list AT delorie DOT com, djgpp AT delorie DOT com From: Goncalo Farias Subject: I'm unable do understand... I've been trying to learn djgpp version2 and i copied the example provided with the explanation for the movedata() and all i get is: Exiting due to signal SIGSEGV General Protection Fault at eip=00002eb1, error=1624 eax=00000117 ebx=0000004f ecx=00000780 edx=00000f00 esi=00000500 edi=000000a0 ebp=00398f00 esp=00398ef4 cs=00ff ds=0107 es=0107 fs=00d7 gs=0117 ss=0107 Call frame traceback EIPs: 0x00002eb1 0x00001612 0x00001b73 This is the "offending" code: =============================================================== #include #include #include int main (void) { short blank_row_buf[ScreenCols()]; /* scroll screen */ movedata(_dos_ds, 0xb8000 + ScreenCols()*2, _dos_ds, 0xb8000, ScreenCols() * (ScreenRows()-1) * 2); /* fill last row */ movedata(_my_ds, (int)blank_row_buf, _dos_ds, 0xb8000 + ScreenCols()*(ScreenRows()-1)*2, ScreenCols() * 2); return (0); } =============================================================== It's weird. Shouldn't this example from the info files work? Ahh, btw, i don't usually use Email (especially to this kind of purpose) so this message might get to the wrong places. I'm very sorry if that happens. Goncalo Farias Portugal