]> 4ch.mooo.com Git - 16.git/commitdiff
wwww
authorsparky4 <sparky4@cock.li>
Wed, 1 Feb 2017 14:08:20 +0000 (08:08 -0600)
committersparky4 <sparky4@cock.li>
Wed, 1 Feb 2017 14:08:20 +0000 (08:08 -0600)
DEBUG.16W [deleted file]
HEAP.16W [deleted file]
MEMINFO.16W [new file with mode: 0755]
MMDUMP.16W [deleted file]
src/lib/16_vl.c
src/lib/doslib

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