From 1297374ea794e3d10774fc88ce861f9bf9de24bf Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 15 Jun 2004 09:02:05 +0000 Subject: [PATCH] New module tgi_geterrormsg.s git-svn-id: svn://svn.cc65.org/cc65/trunk@3122 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/tgi/Makefile | 1 + libsrc/tgi/tgi_geterrormsg.s | 52 ++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 libsrc/tgi/tgi_geterrormsg.s diff --git a/libsrc/tgi/Makefile b/libsrc/tgi/Makefile index 9f39c4569..4ffea9d01 100644 --- a/libsrc/tgi/Makefile +++ b/libsrc/tgi/Makefile @@ -29,6 +29,7 @@ S_OBJS = tgi-kernel.o \ tgi_getcolorcount.o \ tgi_getdefpalette.o \ tgi_geterror.o \ + tgi_geterrormsg.o \ tgi_getmaxcolor.o \ tgi_getmaxx.o \ tgi_getmaxy.o \ diff --git a/libsrc/tgi/tgi_geterrormsg.s b/libsrc/tgi/tgi_geterrormsg.s new file mode 100644 index 000000000..4a76ddbef --- /dev/null +++ b/libsrc/tgi/tgi_geterrormsg.s @@ -0,0 +1,52 @@ +; +; Ullrich von Bassewitz, 2004-06-15 +; +; const char* __fastcall__ tgi_geterrormsg (unsigned char code); +; /* Get an error message describing the error in code. */ +; + + .include "tgi-kernel.inc" + .include "tgi-error.inc" + + +.proc _tgi_geterrormsg + + cmp #TGI_ERR_COUNT + bcs L1 + lda #TGI_ERR_COUNT ; "Unknown error" +L1: tay + ldx #>msgtab + lda #