1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Added TGI files

git-svn-id: svn://svn.cc65.org/cc65/trunk@1308 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-06-21 12:00:45 +00:00
parent ad7e08bf56
commit 18af56060d
3 changed files with 141 additions and 0 deletions

43
asminc/tgi-error.inc Normal file
View File

@ -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

57
asminc/tgi-kernel.inc Normal file
View File

@ -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

41
asminc/tgi-mode.inc Normal file
View File

@ -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