From: sparky4 Date: Sun, 18 May 2014 01:26:37 +0000 (-0500) Subject: new file: 16/DOS_GFX.EXE X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=de1f290f2b60505a9bd3a9a1a6abda9bc4362ef3;p=16.git new file: 16/DOS_GFX.EXE modified: 16/Project 16.bfproject modified: 16/dos_gfx.cpp new file: 16/lib/x/MAKEFILE deleted: 16/modex105/DEMOS/C/W --- diff --git a/16/DOS_GFX.EXE b/16/DOS_GFX.EXE new file mode 100644 index 00000000..97f9d0a1 Binary files /dev/null and b/16/DOS_GFX.EXE differ diff --git a/16/Project 16.bfproject b/16/Project 16.bfproject index 3b9c5024..e6f1291f 100644 --- a/16/Project 16.bfproject +++ b/16/Project 16.bfproject @@ -1,14 +1,16 @@ c2e.convert_special: 0 e2c.convert_num: 0 -openfiles: /dos/z/16/16/dos_gfx.cpp:1676:1013:0: +openfiles: /dos/z/16/16/dos_gfx.cpp:17003:16466:1: openfiles: /dos/z/16/16/dos_gfx.h:102:0:0: openfiles: /dos/z/16/16/dos_kb.c:0:0:0: -openfiles: /dos/z/16/16/dos_kb.h:60:0:1: +openfiles: /dos/z/16/16/dos_kb.h:60:0:0: openfiles: /dos/z/16/16/lib/lib_com.cpp:0:0:0: openfiles: /dos/z/16/16/lib/lib_com.h:0:0:0: openfiles: /dos/z/16/16/scroll.txt:0:0:0: openfiles: /dos/z/16/16/project16.txt:1675:0:0: openfiles: /dos/z/16/16/16.txt:0:0:0: +openfiles: /dos/z/16/16/lib/x/MXSM.ASM:12781:12781:0: +openfiles: /dos/z/16/16/lib/x/MODEX.H:1885:1601:0: snr_recursion_level: 0 convertcolumn_horizontally: 0 adv_open_matchname: 0 @@ -20,10 +22,10 @@ view_left_panel: 0 default_mime_type: text/plain e2c.convert_xml: 1 c2e.convert_iso: 0 -opendir: file:///dos/z/16/16/lib +opendir: file:///dos/z/16/16/lib/x wrap_text_default: 0 bookmarks_filename_mode: 1 -ssearch_text: 386 +ssearch_text: Visible snr_casesens: 0 view_blocks: 1 name: project 16 @@ -55,18 +57,20 @@ recent_files: file:///dos/z/4x4_16/tauron/C_SRC/FONT1.H recent_files: file:///dos/z/4x4_16/tauron/C_SRC/FONT2.H recent_files: file:///dos/z/4x4_16/tile.c recent_files: file:///dos/z/4x4_16/tile.h -recent_files: file:///dos/z/16/16/dos_gfx.cpp -recent_files: file:///dos/z/16/16/dos_kb.c -recent_files: file:///dos/z/16/16/16.txt -recent_files: file:///dos/z/16/16/dos_gfx.h recent_files: file:///dos/z/16/16/lib_com.cpp -recent_files: file:///dos/z/16/16/dos_kb.h recent_files: file:///dos/z/16/16/lib_com.h -recent_files: file:///dos/z/16/16/project16.txt -recent_files: file:///dos/z/16/16/scroll.txt recent_files: file:///dos/z/16/16/PCGPE10/SCROLL.TXT +recent_files: file:///dos/z/16/16/dos_kb.h +recent_files: file:///dos/z/16/16/dos_gfx.h recent_files: file:///dos/z/16/16/lib/lib_com.cpp recent_files: file:///dos/z/16/16/lib/lib_com.h +recent_files: file:///dos/z/16/16/dos_kb.c +recent_files: file:///dos/z/16/16/dos_gfx.cpp +recent_files: file:///dos/z/16/16/project16.txt +recent_files: file:///dos/z/16/16/16.txt +recent_files: file:///dos/z/16/16/scroll.txt +recent_files: file:///dos/z/16/16/lib/x/MXSM.ASM +recent_files: file:///dos/z/16/16/lib/x/MODEX.H snr_replacetype: 0 savedir: file:///dos/z/16/16 spell_check_default: 1 @@ -78,9 +82,6 @@ snr_escape_chars: 0 htmlbar_view: 0 spell_lang: en ssearch_dotmatchall: 0 -searchlist: d put -searchlist: print -searchlist: tile searchlist: fill_plane searchlist: red searchlist: rext @@ -93,6 +94,9 @@ searchlist: rect searchlist: fmem searchlist: vga searchlist: 386 +searchlist: CRTC_INDEX +searchlist: setVisiblePage +searchlist: VisiblePage autocomplete: 1 outputb_show_all_output: 0 bookmarks_show_mode: 0 diff --git a/16/dos_gfx.cpp b/16/dos_gfx.cpp index fcedc7c1..b6284eae 100644 --- a/16/dos_gfx.cpp +++ b/16/dos_gfx.cpp @@ -56,7 +56,7 @@ //code from old library! /*src\lib\*/ -#include "dos_gfx.h" +#include "dos_gfx.h" #include "lib\x\modex.h" int old_mode; @@ -190,6 +190,12 @@ void setVisiblePage(int page) setVisibleStart(page * widthBytes * height); } +void vScroll(int rows) +{ + // Scrolling = current start + (rows * bytes in a row) + setVisibleStart(visStart + (rows * width)); +} + void putPixel_X(int x, int y, byte color) { /* Each address accesses four neighboring pixels, so set @@ -505,10 +511,10 @@ int ding(int q){ } // fixer //if(q!=16){ - if(xx<0) xx=width; - if(yy<0) yy=height; - if(xx>width) xx=0; - if(yy>height) yy=0; +// if(xx<0) xx=width; +// if(yy<0) yy=height; +// if(xx>width) xx=0; +// if(yy>height) yy=0; //} //interesting effects @@ -626,8 +632,9 @@ int main(void) // puts("Press a key when ready..."); // getch(); -//++++0000 setvideo(1); -mxInit(); +//++++0000 + setvideo(1); +//mxInit(); // screen savers /*while(d!=0){ // on! @@ -644,13 +651,18 @@ mxInit(); } }*/ // else off while(!kbhit()){ // conditions of screen saver - ding(4); + ding(4); } //end of screen savers doTest(); -//++++0000 setvideo(0); -mxTerm(); -mxGetVersion(); + + while(!kbhit()){ // conditions of screen saver + vScroll(1); + } +//++++0000 + setvideo(0); +//mxTerm(); +//mxGetVersion(); puts("Where to next? It's your move! wwww"); printf("bakapi ver. 1.04.09.01\nis made by sparky4i†ƒÖ…j feel free to use it ^^\nLicence: GPL v2\n"); return 0; diff --git a/16/lib/x/MAKEFILE b/16/lib/x/MAKEFILE new file mode 100644 index 00000000..cdfef95d --- /dev/null +++ b/16/lib/x/MAKEFILE @@ -0,0 +1,82 @@ +# +# MODEX library makefile (for Borland MAKE) +# Copyright (c) 1993,1994 by Alessandro Scotti +# +LIBINCS = MODEX.DEF + +LIBOBJS = MXBB.OBJ + MXCC.OBJ + MXCG.OBJ + MXCL.OBJ + MXCR.OBJ + MXFB.OBJ + MXFP.OBJ + MXGC.OBJ + MXGI.OBJ + MXGM.OBJ + MXGP.OBJ + MXGV.OBJ + MXHL.OBJ + MXIT.OBJ + MXLL.OBJ + MXLN.OBJ + MXOT.OBJ + MXPB.OBJ + MXPF.OBJ + MXPG.OBJ + MXPI.OBJ + MXPN.OBJ + MXPP.OBJ + MXPT.OBJ + MXRA.OBJ + MXRP.OBJ + MXSA.OBJ + MXSC.OBJ + MXSI.OBJ + MXSL.OBJ + MXSM.OBJ + MXSP.OBJ + MXSS.OBJ + MXTL.OBJ + MXVS.OBJ + MXWD.OBJ + MXWM.OBJ + MXWP.OBJ + MXWR.OBJ + +# +# ASM compiler +# +ASMC = JWASMR +ASMO = -Zm -0 + +# +# PAS compiler +# +#PASC = bpc +#PASO = /m -$D- -$L- -$S- + +# +# LIB maker, uses response file +# +LIBC = JWlibd + +.asm.obj: + $(ASMC) $(ASMO) $< + +target: modex.lib +#modex.tpu modex.tpp + +#modex.tpu: $(LIBOBJS) modex.pas +# $(PASC) $(PASO) modex +# copy modex.tpu .. +# copy modex.pas .. + +#modex.tpp: $(LIBOBJS) modex.pas +# $(PASC) /cp $(PASO) modex +# copy modex.tpp .. + +modex.lib: modex.lib $(LIBOBJS) + $(LIBC) modex.lib @modex.lbr + +$(LIBOBJS): modex.def diff --git a/16/lib/x/MAKEFILE~ b/16/lib/x/MAKEFILE~ new file mode 100644 index 00000000..c5b20124 --- /dev/null +++ b/16/lib/x/MAKEFILE~ @@ -0,0 +1,82 @@ +# +# MODEX library makefile (for Borland MAKE) +# Copyright (c) 1993,1994 by Alessandro Scotti +# +LIBINCS = MODEX.DEF + +LIBOBJS = MXBB.OBJ + MXCC.OBJ + MXCG.OBJ + MXCL.OBJ + MXCR.OBJ + MXFB.OBJ + MXFP.OBJ + MXGC.OBJ + MXGI.OBJ + MXGM.OBJ + MXGP.OBJ + MXGV.OBJ + MXHL.OBJ + MXIT.OBJ + MXLL.OBJ + MXLN.OBJ + MXOT.OBJ + MXPB.OBJ + MXPF.OBJ + MXPG.OBJ + MXPI.OBJ + MXPN.OBJ + MXPP.OBJ + MXPT.OBJ + MXRA.OBJ + MXRP.OBJ + MXSA.OBJ + MXSC.OBJ + MXSI.OBJ + MXSL.OBJ + MXSM.OBJ + MXSP.OBJ + MXSS.OBJ + MXTL.OBJ + MXVS.OBJ + MXWD.OBJ + MXWM.OBJ + MXWP.OBJ + MXWR.OBJ + +# +# ASM compiler +# +ASMC = JWASMR +ASMO = -Zm -0 + +# +# PAS compiler +# +#PASC = bpc +#PASO = /m -$D- -$L- -$S- + +# +# LIB maker, uses response file +# +LIBC = JWlibd + +.asm.obj: + $(ASMC) $(ASMO) $< + +target: modex.lib +#modex.tpu modex.tpp + +#modex.tpu: $(LIBOBJS) modex.pas +# $(PASC) $(PASO) modex +# copy modex.tpu .. +# copy modex.pas .. + +#modex.tpp: $(LIBOBJS) modex.pas +# $(PASC) /cp $(PASO) modex +# copy modex.tpp .. + +modex.lib: modex.lib $(LIBOBJS) + $(LIBC) modex.lib# @modex.lbr + +$(LIBOBJS): modex.def diff --git a/16/modex105/DEMOS/C/W b/16/modex105/DEMOS/C/W deleted file mode 100644 index 57d6a69c..00000000 --- a/16/modex105/DEMOS/C/W +++ /dev/null @@ -1,64 +0,0 @@ -Open Watcom C/C++16 Compile and Link Utility Version 1.9 -Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved. -Source code is available under the Sybase Open Watcom Public License. -See http://www.openwatcom.org/ for details. - wcc X-DEMO.C -Open Watcom C16 Optimizing Compiler Version 1.9 -Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved. -Source code is available under the Sybase Open Watcom Public License. -See http://www.openwatcom.org/ for details. -X-DEMO.C: 780 lines, included 1586, 0 warnings, 0 errors -.Code size: 4388 - wlink @__wcl__.lnk -Open Watcom Linker Version 1.9 -Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Source code is available under the Sybase Open Watcom Public License. -See http://www.openwatcom.org/ for details. -loading object files -searching libraries -Error! E2028: INIT_RANDOM is an undefined reference -Error! E2028: SET_VIDEO_MODE is an undefined reference -Error! E2028: DOS_PRINT is an undefined reference -Error! E2028: SET_MODEX is an undefined reference -Error! E2028: DRAW_LINE is an undefined reference -Error! E2028: TGPRINTC is an undefined reference -Error! E2028: SET_DAC_REGISTER is an undefined reference -Error! E2028: TPRINT_STR is an undefined reference -Error! E2028: FILL_BLOCK is an undefined reference -Error! E2028: SET_POINT is an undefined reference -Error! E2028: READ_POINT is an undefined reference -Error! E2028: PRINT_STR is an undefined reference -Error! E2028: SCAN_KEYBOARD is an undefined reference -Error! E2028: RANDOM_INT is an undefined reference -Error! E2028: SET_VGA_MODEX is an undefined reference -Error! E2028: SET_ACTIVE_PAGE is an undefined reference -Error! E2028: CLEAR_VGA_SCREEN is an undefined reference -Error! E2028: COPY_PAGE is an undefined reference -Error! E2028: COPY_BITMAP is an undefined reference -Error! E2028: TDRAW_BITMAP is an undefined reference -Error! E2028: SET_WINDOW is an undefined reference -Error! E2028: SET_DISPLAY_PAGE is an undefined reference -creating a DOS executable -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol INIT_RANDOM -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol SET_VIDEO_MODE -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol DOS_PRINT -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol SET_MODEX -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol DRAW_LINE -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol TGPRINTC -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol SET_DAC_REGISTER -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol TPRINT_STR -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol FILL_BLOCK -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol SET_POINT -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol READ_POINT -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol PRINT_STR -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol SCAN_KEYBOARD -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol RANDOM_INT -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol SET_VGA_MODEX -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol SET_ACTIVE_PAGE -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol CLEAR_VGA_SCREEN -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol COPY_PAGE -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol COPY_BITMAP -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol TDRAW_BITMAP -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol SET_WINDOW -file X-DEMO.obj(C:\Z\16\16\MODEX105\DEMOS\C\X-DEMO.C): undefined symbol SET_DISPLAY_PAGE -Error: Linker returned a bad status