From: sparky4 Date: Wed, 1 Feb 2017 14:08:20 +0000 (-0600) Subject: wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=68da8c690a720b595598a0dcee0c2f6b33aa1287;p=16.git wwww --- diff --git a/DEBUG.16W b/DEBUG.16W deleted file mode 100755 index 78d43b40..00000000 --- a/DEBUG.16W +++ /dev/null @@ -1,210 +0,0 @@ -Seg:0 Size:8801 Owner:0x0 -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++0 -Seg:2261 Size:256 Owner:0x1958 -++++ -Seg:23bb Size:44 Owner:0x0 -+ -Seg:23e7 Size:256 Owner:0x174a -+++++ -Seg:24e7 Size:256 Owner:0x174c -++++ -Seg:25e7 Size:256 Owner:0x174e -++++ -Seg:26e7 Size:256 Owner:0x1750 -++++ -Seg:27e7 Size:256 Owner:0x1752 -++++ -Seg:28e7 Size:256 Owner:0x1754 -+++++ -Seg:29e7 Size:256 Owner:0x1756 -++++ -Seg:2ae7 Size:256 Owner:0x1758 -++++ -Seg:2be7 Size:256 Owner:0x175a -++++ -Seg:2ce7 Size:256 Owner:0x175c -++++ -Seg:2de7 Size:256 Owner:0x175e -+++++ -Seg:2ee7 Size:256 Owner:0x1760 -++++ -Seg:2fe7 Size:256 Owner:0x1762 -++++ -Seg:30e7 Size:256 Owner:0x1764 -++++ -Seg:31e7 Size:256 Owner:0x1766 -++++ -Seg:32e7 Size:256 Owner:0x1768 -+++++ -Seg:33e7 Size:256 Owner:0x176a -++++ -Seg:34e7 Size:256 Owner:0x176c -++++ -Seg:35e7 Size:256 Owner:0x176e -++++ -Seg:36e7 Size:256 Owner:0x1770 -++++ -Seg:37e7 Size:256 Owner:0x1772 -+++++ -Seg:38e7 Size:256 Owner:0x1774 -++++ -Seg:39e7 Size:256 Owner:0x1776 -++++ -Seg:3ae7 Size:256 Owner:0x1778 -++++ -Seg:3be7 Size:256 Owner:0x177a -++++ -Seg:3ce7 Size:256 Owner:0x177c -+++++ -Seg:3de7 Size:256 Owner:0x177e -++++ -Seg:3ee7 Size:256 Owner:0x1780 -++++ -Seg:3fe7 Size:256 Owner:0x1782 -++++ -Seg:40e7 Size:256 Owner:0x1784 -++++ -Seg:41e7 Size:256 Owner:0x1786 -+++++ -Seg:42e7 Size:256 Owner:0x1788 -++++ -Seg:43e7 Size:256 Owner:0x178a -++++ -Seg:44e7 Size:256 Owner:0x178c -++++ -Seg:45e7 Size:256 Owner:0x178e -++++ -Seg:46e7 Size:256 Owner:0x1790 -+++++ -Seg:47e7 Size:256 Owner:0x1792 -++++ -Seg:48e7 Size:256 Owner:0x1794 -++++ -Seg:49e7 Size:256 Owner:0x1796 -++++ -Seg:4ae7 Size:256 Owner:0x1798 -++++ -Seg:4be7 Size:256 Owner:0x179a -+++++ -Seg:4ce7 Size:256 Owner:0x179c -++++ -Seg:4de7 Size:256 Owner:0x179e -++++ -Seg:4ee7 Size:256 Owner:0x17a0 -++++ -Seg:4fe7 Size:256 Owner:0x17a2 -++++ -Seg:50e7 Size:256 Owner:0x17a4 -+++++ -Seg:51e7 Size:256 Owner:0x17a6 -++++ -Seg:52e7 Size:256 Owner:0x17a8 -++++ -Seg:53e7 Size:256 Owner:0x17aa -++++ -Seg:54e7 Size:256 Owner:0x17ac -++++ -Seg:55e7 Size:256 Owner:0x17ae -+++++ -Seg:56e7 Size:256 Owner:0x17b0 -++++ -Seg:57e7 Size:256 Owner:0x17b2 -++++ -Seg:58e7 Size:256 Owner:0x17b4 -++++ -Seg:59e7 Size:256 Owner:0x17b6 -++++ -Seg:5ae7 Size:256 Owner:0x17b8 -+++++ -Seg:5be7 Size:256 Owner:0x17ba -++++ -Seg:5ce7 Size:256 Owner:0x17bc -++++ -Seg:5de7 Size:256 Owner:0x17be -++++ -Seg:5ee7 Size:256 Owner:0x17c0 -++++ -Seg:5fe7 Size:256 Owner:0x17c2 -+++++ -Seg:60e7 Size:256 Owner:0x17c4 -++++ -Seg:61e7 Size:256 Owner:0x17c6 -++++ -Seg:62e7 Size:256 Owner:0x17c8 -++++ -Seg:63e7 Size:256 Owner:0x17ca -++++ -Seg:64e7 Size:256 Owner:0x17cc -+++++ -Seg:65e7 Size:256 Owner:0x17ce -++++ -Seg:66e7 Size:256 Owner:0x17d0 -++++ -Seg:67e7 Size:256 Owner:0x17d2 -++++ -Seg:68e7 Size:256 Owner:0x17d4 -++++ -Seg:69e7 Size:256 Owner:0x17d6 -+++++ -Seg:6ae7 Size:256 Owner:0x17d8 -++++ -Seg:6be7 Size:256 Owner:0x17da -++++ -Seg:6ce7 Size:256 Owner:0x17dc -++++ -Seg:6de7 Size:256 Owner:0x17de -++++ -Seg:6ee7 Size:256 Owner:0x17e0 -+++++ -Seg:6fe7 Size:256 Owner:0x17e2 -++++ -Seg:70e7 Size:256 Owner:0x17e4 -++++ -Seg:71e7 Size:256 Owner:0x17e6 -++++ -Seg:72e7 Size:256 Owner:0x17e8 -++++ -Seg:73e7 Size:256 Owner:0x17ea -+++++ -Seg:74e7 Size:256 Owner:0x17ec -++++ -Seg:75e7 Size:256 Owner:0x17ee -++++ -Seg:76e7 Size:256 Owner:0x17f0 -++++ -Seg:77e7 Size:256 Owner:0x17f2 -++++ -Seg:78e7 Size:256 Owner:0x17f4 -+++++ -Seg:79e7 Size:256 Owner:0x17f6 -++++ -Seg:7ae7 Size:256 Owner:0x17f8 -++++ -Seg:7be7 Size:256 Owner:0x17fa -++++ -Seg:7ce7 Size:256 Owner:0x17fc -++++ -Seg:7de7 Size:256 Owner:0x17fe -+++++ -Seg:7ee7 Size:256 Owner:0x1800 -++++ -Seg:7fe7 Size:256 Owner:0x1802 -++++ -Seg:80e7 Size:256 Owner:0x1804 -++++ -Seg:81e7 Size:256 Owner:0x1806 -++++ -Seg:82e7 Size:256 Owner:0x1808 -+++++ -Seg:83e7 Size:256 Owner:0x180a -++++ -Seg:84e7 Size:256 Owner:0x180c -++++ -Seg:85e7 Size:256 Owner:0x180e -++++ -Seg:86e7 Size:256 Owner:0x1810 -++++ -Seg:87e7 Size:273 Owner:0xe622 -+++++ -Seg:b3e7 Size:19480 Owner:0x0 -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \ No newline at end of file diff --git a/HEAP.16W b/HEAP.16W deleted file mode 100755 index 13dd057a..00000000 --- a/HEAP.16W +++ /dev/null @@ -1,47 +0,0 @@ - - == default == - - USED block at 23dd0016 of size 66 - USED block at 23dd0058 of size 66 - FREE block at 23dd009a of size 18 - USED block at 23dd00ac of size 136 - USED block at 23dd0134 of size 20 - FREE block at 23dd0148 of size 7860 -OK - end of heap - - == near == - - USED block at 13dce656 of size 12 - USED block at 13dce662 of size 332 - USED block at 13dce7ae of size 52 - USED block at 13dce7e2 of size 20 - USED block at 13dce7f6 of size 20 - USED block at 13dce80a of size 20 - USED block at 13dce81e of size 20 - USED block at 13dce832 of size 20 - USED block at 13dce846 of size 6070 -OK - end of heap - - == far == - - USED block at 23dd0016 of size 66 - USED block at 23dd0058 of size 66 - USED block at 23dd009a of size 18 - USED block at 23dd00ac of size 136 - USED block at 23dd0134 of size 20 - USED block at 23dd0148 of size 7860 -OK - end of heap - -Memory Type Total Used Free ----------------- -------- -------- -------- -Default 8166 288 7878 -Near 6566 496 6070 -Far 8166 288 7878 ----------------- -------- -------- -------- -coreleft = 6068 -farcoreleft = 54752 -GetFreeSize = 48704 -GetNearFreeSize = 6070 -GetFarFreeSize = 48704 -memavl = 6068 -stackavail = 31604 diff --git a/MEMINFO.16W b/MEMINFO.16W new file mode 100755 index 00000000..e69de29b diff --git a/MMDUMP.16W b/MMDUMP.16W deleted file mode 100755 index db214e41..00000000 Binary files a/MMDUMP.16W and /dev/null differ diff --git a/src/lib/16_vl.c b/src/lib/16_vl.c index 057e763c..782bd3d6 100755 --- a/src/lib/16_vl.c +++ b/src/lib/16_vl.c @@ -349,18 +349,19 @@ modexShowPage(page_t *page) { outp(AC_INDEX, 0x33); outp(AC_INDEX, (page[0].dx & 0x03) << 1); } + //args: page, vertical sync switch, screen resolution switch, page0 switch void VL_ShowPage(page_t *page, boolean vsync, boolean sr) { word high_address, low_address, offset; byte crtcOffset; - /* calculate offset */ + // calculate offset offset = (word) page->data; - offset += page[0].dy * (page->width >> 2 ); - offset += page[0].dx >> 2; + offset += page->dy * (page->width >> 2 ); + offset += page->dx >> 2; - /* calculate crtcOffset according to virtual width */ + // calculate crtcOffset according to virtual width switch(sr) { case 1: @@ -375,20 +376,20 @@ VL_ShowPage(page_t *page, boolean vsync, boolean sr) { high_address = HIGH_ADDRESS | (offset & 0xff00); low_address = LOW_ADDRESS | (offset << 8); - /* wait for appropriate timing and then program CRTC */ + // wait for appropriate timing and then program CRTC if(vsync) while ((inp(INPUT_STATUS_1) & DISPLAY_ENABLE)); outpw(CRTC_INDEX, high_address); outpw(CRTC_INDEX, low_address); outp(CRTC_INDEX, 0x13); outp(CRTC_DATA, crtcOffset); - /* wait for one retrace */ + // wait for one retrace if(vsync) while (!(inp(INPUT_STATUS_1) & VRETRACE)); - /* do PEL panning here */ + // do PEL panning here outp(AC_INDEX, 0x33); - outp(AC_INDEX, (page[0].dx & 0x03) << 1); - vga_state.vga_graphics_ram = (VGA_RAM_PTR)page[0].data; + outp(AC_INDEX, (page->dx & 0x03) << 1); + vga_state.vga_graphics_ram = (VGA_RAM_PTR)page->data; } //============================================================================= diff --git a/src/lib/doslib b/src/lib/doslib index 25fbc554..9c300a9a 160000 --- a/src/lib/doslib +++ b/src/lib/doslib @@ -1 +1 @@ -Subproject commit 25fbc5545e42e4de56a531cf3c8c02fd1d732789 +Subproject commit 9c300a9aa95623357c1305b25a6cd84ef5212f27