From: Scott Hutter Date: Tue, 18 Dec 2018 17:09:06 +0000 (-0600) Subject: Added SetNewMode() to geoslib - #814 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f6f468aad0606b0cd89f447ef7d853d119e4473;p=cc65 Added SetNewMode() to geoslib - #814 --- diff --git a/include/geos/ggraph.h b/include/geos/ggraph.h index 35e02c198..642bd85ce 100644 --- a/include/geos/ggraph.h +++ b/include/geos/ggraph.h @@ -45,6 +45,10 @@ void __fastcall__ BitOtherClip(void *proc1, void *proc2, char skipl, void __fastcall__ GraphicsString(char *myGfxString); +#ifdef __GEOS_CBM__ +void __fastcall__ SetNewMode(void); +#endif + /* VIC colour constants */ #define BLACK 0 #define WHITE 1 @@ -172,5 +176,4 @@ typedef void graphicStr; /* ESC_PUTSTRING can't be implemented - it needs text, not pointer to it #define ESC_PUTSTRING(x,y,text) (char)6, (unsigned)(x), (char)(y), (text), (char)NULL */ - #endif diff --git a/libsrc/geos-cbm/setnewmode.s b/libsrc/geos-cbm/setnewmode.s new file mode 100644 index 000000000..58098a299 --- /dev/null +++ b/libsrc/geos-cbm/setnewmode.s @@ -0,0 +1,18 @@ +; +; Scott Hutter +; +; 18.12.18 + +; void SetNewMode(void); + + .export _SetNewMode + + .include "jumptab.inc" + .include "geossym.inc" + +_SetNewMode: + lda graphMode + eor #$80 + sta graphMode + jsr SetNewMode + rts