From: sparky4 Date: Fri, 16 Oct 2015 00:24:05 +0000 (-0500) Subject: ok i think i got it i need to test it ==do not run scroll.exe 2 unless you are certai... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=54e1625597dfa9d332212d1386e61fc2c5de1343;p=16.git ok i think i got it i need to test it ==do not run scroll.exe 2 unless you are certai your monoiter will be fine== --- diff --git a/16.exe b/16.exe index ca25a586..0686dc98 100755 Binary files a/16.exe and b/16.exe differ diff --git a/16.map b/16.map index 91e3ec09..f40e9ffe 100755 --- a/16.map +++ b/16.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:58 +Created on: 15/10/15 19:22:34 Executable Image: 16.exe creating a DOS executable diff --git a/bakapi.exe b/bakapi.exe index 91ce5c61..969e817d 100755 Binary files a/bakapi.exe and b/bakapi.exe differ diff --git a/bakapi.map b/bakapi.map index 381e318f..551ff324 100755 --- a/bakapi.map +++ b/bakapi.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:58 +Created on: 15/10/15 19:22:34 Executable Image: bakapi.exe creating a DOS executable diff --git a/exmmtest.map b/exmmtest.map index 14377bb8..73818bdf 100755 --- a/exmmtest.map +++ b/exmmtest.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:58 +Created on: 15/10/15 19:22:35 Executable Image: exmmtest.exe creating a DOS executable diff --git a/fmemtest.map b/fmemtest.map index c36fc0cc..f4b6c4c8 100755 --- a/fmemtest.map +++ b/fmemtest.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:59 +Created on: 15/10/15 19:22:35 Executable Image: fmemtest.exe creating a DOS executable @@ -576,4 +576,4 @@ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(fpeint.c) Stack size: dac0 (56000.) Memory size: 0001d3f0 (119792.) Entry point address: 0000:7e06 -Link time: 00:00.00 +Link time: 00:00.10 diff --git a/fontgfx.exe b/fontgfx.exe index 7da08405..702a5c3f 100755 Binary files a/fontgfx.exe and b/fontgfx.exe differ diff --git a/fontgfx.map b/fontgfx.map index 037bfeef..9b70336a 100755 --- a/fontgfx.map +++ b/fontgfx.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:59 +Created on: 15/10/15 19:22:35 Executable Image: fontgfx.exe creating a DOS executable @@ -638,4 +638,4 @@ gfx.lib Stack size: dac0 (56000.) Memory size: 00021180 (135552.) Entry point address: 0000:7ce8 -Link time: 00:00.10 +Link time: 00:00.00 diff --git a/fonttest.map b/fonttest.map index 560a81c7..d2ec564a 100755 --- a/fonttest.map +++ b/fonttest.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:59 +Created on: 15/10/15 19:22:35 Executable Image: fonttest.exe creating a DOS executable @@ -588,4 +588,4 @@ gfx.lib Stack size: dac0 (56000.) Memory size: 0001d970 (121200.) Entry point address: 0000:7d82 -Link time: 00:00.10 +Link time: 00:00.00 diff --git a/inputest.map b/inputest.map index bf4f55b0..a2fb7878 100755 --- a/inputest.map +++ b/inputest.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:59 +Created on: 15/10/15 19:22:36 Executable Image: inputest.exe creating a DOS executable diff --git a/maptest.exe b/maptest.exe index f71e0029..5c5adee9 100755 Binary files a/maptest.exe and b/maptest.exe differ diff --git a/maptest.map b/maptest.map index 71edaf66..7d388c60 100755 --- a/maptest.map +++ b/maptest.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:59 +Created on: 15/10/15 19:22:35 Executable Image: maptest.exe creating a DOS executable diff --git a/palettec.exe b/palettec.exe index 3b764e4f..b772318b 100755 Binary files a/palettec.exe and b/palettec.exe differ diff --git a/palettec.map b/palettec.map index 2035fe7a..50440624 100755 --- a/palettec.map +++ b/palettec.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:59 +Created on: 15/10/15 19:22:35 Executable Image: palettec.exe creating a DOS executable @@ -636,4 +636,4 @@ gfx.lib Stack size: dac0 (56000.) Memory size: 00020c00 (134144.) Entry point address: 0000:7cd6 -Link time: 00:00.10 +Link time: 00:00.00 diff --git a/palettel.exe b/palettel.exe index fd73c09b..235a2296 100755 Binary files a/palettel.exe and b/palettel.exe differ diff --git a/palettel.map b/palettel.map index d84148e4..67b6feec 100755 --- a/palettel.map +++ b/palettel.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:59 +Created on: 15/10/15 19:22:36 Executable Image: palettel.exe creating a DOS executable diff --git a/pcxtest.exe b/pcxtest.exe index f4cf03ce..88659e82 100755 Binary files a/pcxtest.exe and b/pcxtest.exe differ diff --git a/pcxtest.map b/pcxtest.map index 2ac0281d..5f82fe4b 100755 --- a/pcxtest.map +++ b/pcxtest.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:58 +Created on: 15/10/15 19:22:35 Executable Image: pcxtest.exe creating a DOS executable diff --git a/pcxtest2.exe b/pcxtest2.exe index f898d621..64f8377e 100755 Binary files a/pcxtest2.exe and b/pcxtest2.exe differ diff --git a/pcxtest2.map b/pcxtest2.map index 7264e558..c955e8e2 100755 --- a/pcxtest2.map +++ b/pcxtest2.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:58 +Created on: 15/10/15 19:22:35 Executable Image: pcxtest2.exe creating a DOS executable diff --git a/scroll.exe b/scroll.exe index 1cd48a0c..1c6a1ba4 100755 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/scroll.map b/scroll.map index 2c27d8ff..c98cc0a1 100755 --- a/scroll.map +++ b/scroll.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:59 +Created on: 15/10/15 19:22:35 Executable Image: scroll.exe creating a DOS executable diff --git a/src/lib/modex16/192x144.h b/src/lib/modex16/192x144.h index 73b0c6d5..b6ab1048 100755 --- a/src/lib/modex16/192x144.h +++ b/src/lib/modex16/192x144.h @@ -56,18 +56,18 @@ static const word ModeX_192x144regs[] = { 0x3200, /* Horizontal total */ - 0x2701, /* horizontal display enable end */ - 0x2802, /* Start horizontal blanking */ - 0x2003, /* End horizontal blanking */ - 0x2b04, /* Start horizontal retrace */ - 0x7005, /* End horizontal retrace */ + 0x3f01, /* horizontal display enable end */ + 0x2f02, /* Start horizontal blanking */ + 0x8203, /* End horizontal blanking */ + 0x5404, /* Start horizontal retrace */ + 0x8005, /* End horizontal retrace */ 0x0d06, /* vertical total */ 0x3e07, /* overflow (bit 8 of vertical counts) */ - 0x4309, /* cell height (2 to double-scan */ + 0x4109, /* cell height (2 to double-scan */ 0xea10, /* v sync start */ 0xac11, /* v sync end and protect cr0-cr7 */ - 0xdf12, /* vertical displayed */ - 0x1413, /* offset/logical width */ + 0x1f12, /* vertical displayed */ + 0x1813, /* offset/logical width */ 0x0014, /* turn off dword mode */ 0xe715, /* v blank start */ 0x0616, /* v blank end */ @@ -76,73 +76,32 @@ static const word ModeX_192x144regs[] = { #endif /*_SMALLMODEXRES_H_*/ /* -voidtg::mode160x120(){ - int crtc11; outp(CRTC_INDEX, 0x11); // unlock crtc - crtc11 = inp(CRTC_DATA) & 0x7f; - outp(CRTC_INDEX, 0x11); - outp(CRTC_DATA, crtc11); - width = 160; - height = 120; - maxx = 159; - maxy = 119; - pages = 13; - lineSize = 40; - pageSize = 19200; - modeName = "160x120"; - - outp(MISC_OUTPUT, 0xe3); // mor - - outp(CRTC_INDEX, 0x00); outp(CRTC_DATA, 0x32); - outp(CRTC_INDEX, 0x01); outp(CRTC_DATA, 0x27); - outp(CRTC_INDEX, 0x02); outp(CRTC_DATA, 0x28); - outp(CRTC_INDEX, 0x03); outp(CRTC_DATA, 0x20); - outp(CRTC_INDEX, 0x04); outp(CRTC_DATA, 0x2b); - outp(CRTC_INDEX, 0x05); outp(CRTC_DATA, 0x70); - outp(CRTC_INDEX, 0x06); outp(CRTC_DATA, 0x0d); - outp(CRTC_INDEX, 0x07); outp(CRTC_DATA, 0x3e); - outp(CRTC_INDEX, 0x08); outp(CRTC_DATA, 0x00); - outp(CRTC_INDEX, 0x09); outp(CRTC_DATA, 0x43); - outp(CRTC_INDEX, 0x10); outp(CRTC_DATA, 0xea); - outp(CRTC_INDEX, 0x11); outp(CRTC_DATA, 0xac); - outp(CRTC_INDEX, 0x12); outp(CRTC_DATA, 0xdf); - outp(CRTC_INDEX, 0x13); outp(CRTC_DATA, 0x14); - outp(CRTC_INDEX, 0x14); outp(CRTC_DATA, 0x00); - outp(CRTC_INDEX, 0x15); outp(CRTC_DATA, 0xe7); - outp(CRTC_INDEX, 0x16); outp(CRTC_DATA, 0x06); - outp(CRTC_INDEX, 0x17); outp(CRTC_DATA, 0xe3); - - outp(0xSC_INDEX, 0x01); // seq - outp(0xSC_DATA, 0x01); - outp(0xSC_INDEX, 0x03); // seq - outp(0xSC_DATA, 0x00); - outp(0xSC_INDEX, 0x04); // seq - outp(0xSC_DATA, 0x06); - - outp(GC_INDEX, 0x05); // gcr - outp(0x3cf, 0x40); - - outp(GC_INDEX, 0x06); // gcr - outp(0x3cf, 0x05); - - inp(0x3da); // acr - outp(0x3c0, 0x10 | 0x20); - outp(0x3c0, 0x41); - inp(0x3da); // acr - outp(0x3c0, 0x11 | 0x20); - outp(0x3c0, 0x00); - inp(0x3da); // acr - outp(0x3c0, 0x12 | 0x20); - outp(0x3c0, 0x0f); - inp(0x3da); // acr - outp(0x3c0, 0x13 | 0x20); - outp(0x3c0, 0x00); - inp(0x3da); // acr - outp(0x3c0, 0x14 | 0x20); - outp(0x3c0, 0x00); - - outp(CRTC_INDEX, 0x11); // lock crtc - crtc11 = inp(CRTC_DATA) | 0x80; - outp(CRTC_INDEX, 0x11); - outp(CRTC_DATA, crtc11); -} +192x144[] = + { + { 0x3c2, 0x0, 0xe3}, + { 0x3d4, 0x0, 0x3f}, + { 0x3d4, 0x1, 0x2f}, + { 0x3d4, 0x2, 0x50}, + { 0x3d4, 0x3, 0x82}, + { 0x3d4, 0x4, 0x54}, + { 0x3d4, 0x5, 0x80}, + { 0x3d4, 0x6, 0xd}, + { 0x3d4, 0x7, 0x3e}, + { 0x3d4, 0x8, 0x0}, + { 0x3d4, 0x9, 0x41}, + { 0x3d4, 0x10, 0xea}, + { 0x3d4, 0x11, 0xac}, + { 0x3d4, 0x12, 0x1f}, + { 0x3d4, 0x13, 0x18}, + { 0x3d4, 0x14, 0x0}, + { 0x3d4, 0x15, 0xe7}, + { 0x3d4, 0x16, 0x6}, + { 0x3d4, 0x17, 0xe3}, + { 0x3c4, 0x1, 0x1}, + { 0x3c4, 0x4, 0x6}, + { 0x3ce, 0x5, 0x40}, + { 0x3ce, 0x6, 0x5}, + { 0x3c0, 0x10, 0x41}, + { 0x3c0, 0x13, 0x0} + }; */ diff --git a/test.exe b/test.exe index 584070cb..a236be73 100755 Binary files a/test.exe and b/test.exe differ diff --git a/test.map b/test.map index f360db92..79b43fe2 100755 --- a/test.map +++ b/test.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:58 +Created on: 15/10/15 19:22:35 Executable Image: test.exe creating a DOS executable diff --git a/test2.exe b/test2.exe index a49aee10..15525f9f 100755 Binary files a/test2.exe and b/test2.exe differ diff --git a/test2.map b/test2.map index f209066e..98ee8597 100755 --- a/test2.map +++ b/test2.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:59 +Created on: 15/10/15 19:22:35 Executable Image: test2.exe creating a DOS executable diff --git a/vgmtest.map b/vgmtest.map index 35e5d812..b0dce8d1 100755 --- a/vgmtest.map +++ b/vgmtest.map @@ -1,7 +1,7 @@ Open Watcom Linker Version 2.0 beta Sep 21 2015 10:22:11 (32-bit) Copyright (c) 2002-2015 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 15/10/15 18:09:59 +Created on: 15/10/15 19:22:36 Executable Image: vgmtest.exe creating a DOS executable @@ -606,4 +606,4 @@ vgmsnd.lib Stack size: dac0 (56000.) Memory size: 0001f470 (128112.) Entry point address: 0000:7d06 -Link time: 00:00.00 +Link time: 00:00.10