From: cuz Date: Fri, 21 Jun 2002 12:00:45 +0000 (+0000) Subject: Added TGI files X-Git-Tag: V2.12.0~2316 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=18af56060de7bb554e34233e46f0d3f384278969;p=cc65 Added TGI files git-svn-id: svn://svn.cc65.org/cc65/trunk@1308 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/asminc/tgi-error.inc b/asminc/tgi-error.inc new file mode 100644 index 000000000..60129aa57 --- /dev/null +++ b/asminc/tgi-error.inc @@ -0,0 +1,43 @@ +;*****************************************************************************/ +;* */ +;* tgi-error.inc */ +;* */ +;* TGI error codes */ +;* */ +;* */ +;* */ +;* (C) 2002 Ullrich von Bassewitz */ +;* Wacholderweg 14 */ +;* D-70597 Stuttgart */ +;* EMail: uz@musoftware.de */ +;* */ +;* */ +;* This software is provided 'as-is', without any expressed or implied */ +;* warranty. In no event will the authors be held liable for any damages */ +;* arising from the use of this software. */ +;* */ +;* Permission is granted to anyone to use this software for any purpose, */ +;* including commercial applications, and to alter it and redistribute it */ +;* freely, subject to the following restrictions: */ +;* */ +;* 1. The origin of this software must not be misrepresented; you must not */ +;* claim that you wrote the original software. If you use this software */ +;* in a product, an acknowledgment in the product documentation would be */ +;* appreciated but is not required. */ +;* 2. Altered source versions must be plainly marked as such, and must not */ +;* be misrepresented as being the original software. */ +;* 3. This notice may not be removed or altered from any source */ +;* distribution. */ +;* */ +;*****************************************************************************/ + + + +; Error constants +TGI_ERR_OK = 0 ; No error +TGI_ERR_NO_DRIVER = 1 ; No driver available +TGI_ERR_LOAD_ERROR = 2 ; Error loading driver +TGI_ERR_INV_MODE = 3 ; Mode not supported by driver + + + diff --git a/asminc/tgi-kernel.inc b/asminc/tgi-kernel.inc new file mode 100644 index 000000000..a6ecc7867 --- /dev/null +++ b/asminc/tgi-kernel.inc @@ -0,0 +1,57 @@ +;*****************************************************************************/ +;* */ +;* tgi-kernel.inc */ +;* */ +;* TGI kernel interface */ +;* */ +;* */ +;* */ +;* (C) 2002 Ullrich von Bassewitz */ +;* Wacholderweg 14 */ +;* D-70597 Stuttgart */ +;* EMail: uz@musoftware.de */ +;* */ +;* */ +;* This software is provided 'as-is', without any expressed or implied */ +;* warranty. In no event will the authors be held liable for any damages */ +;* arising from the use of this software. */ +;* */ +;* Permission is granted to anyone to use this software for any purpose, */ +;* including commercial applications, and to alter it and redistribute it */ +;* freely, subject to the following restrictions: */ +;* */ +;* 1. The origin of this software must not be misrepresented; you must not */ +;* claim that you wrote the original software. If you use this software */ +;* in a product, an acknowledgment in the product documentation would be */ +;* appreciated but is not required. */ +;* 2. Altered source versions must be plainly marked as such, and must not */ +;* be misrepresented as being the original software. */ +;* 3. This notice may not be removed or altered from any source */ +;* distribution. */ +;* */ +;*****************************************************************************/ + + + +; Offsets into the driver header +TGI_HDR_ID = 0 ; Contains 0x74, 0x67, 0x69 ("tgi") +TGI_HDR_VERSION = 3 ; Interface version +TGI_HDR_XRES = 4 ; X resolution +TGI_HDR_YRES = 6 ; Y resolution +TGI_HDR_COLORS = 8 ; Number of available colors +TGI_HDR_RES = 9 ; Reserved for extensions + +TGI_HDR_INSTALL = 16 ; INSTALL routine +TGI_HDR_DEINSTALL = 18 ; DEINSTALL routine +TGI_HDR_INIT = 20 ; INIT routine +TGI_HDR_POST = 22 ; POST routine +TGI_HDR_CONTROL = 24 ; CONTROL routine +TGI_HDR_CLEAR = 26 ; CLEAR routine +TGI_HDR_SETCOLOR = 28 ; SETCOLOR routine +TGI_HDR_SETPIXEL = 30 ; SETPIXEL routine +TGI_HDR_GETPIXEL = 32 ; GETPIXEL routine +TGI_HDR_LINE = 34 ; LINE routine +TGI_HDR_BAR = 36 ; BAR routine +TGI_HDR_CIRCLE = 38 ; CIRCLE routine + + diff --git a/asminc/tgi-mode.inc b/asminc/tgi-mode.inc new file mode 100644 index 000000000..e50c10f5a --- /dev/null +++ b/asminc/tgi-mode.inc @@ -0,0 +1,41 @@ +;*****************************************************************************/ +;* */ +;* tgi-mode.inc */ +;* */ +;* TGI mode definitions */ +;* */ +;* */ +;* */ +;* (C) 2002 Ullrich von Bassewitz */ +;* Wacholderweg 14 */ +;* D-70597 Stuttgart */ +;* EMail: uz@musoftware.de */ +;* */ +;* */ +;* This software is provided 'as-is', without any expressed or implied */ +;* warranty. In no event will the authors be held liable for any damages */ +;* arising from the use of this software. */ +;* */ +;* Permission is granted to anyone to use this software for any purpose, */ +;* including commercial applications, and to alter it and redistribute it */ +;* freely, subject to the following restrictions: */ +;* */ +;* 1. The origin of this software must not be misrepresented; you must not */ +;* claim that you wrote the original software. If you use this software */ +;* in a product, an acknowledgment in the product documentation would be */ +;* appreciated but is not required. */ +;* 2. Altered source versions must be plainly marked as such, and must not */ +;* be misrepresented as being the original software. */ +;* 3. This notice may not be removed or altered from any source */ +;* distribution. */ +;* */ +;*****************************************************************************/ + + + +; Graphics modes. Zero may not be used as a mode number. +TGI_MODE_320_200_2 = 1 ; 320x200, 2 colors (b/w) +TGI_MODE_160_200_4 = 2 ; 160x200, 4 colors + + +