From: cuz Date: Thu, 13 Feb 2003 21:12:11 +0000 (+0000) Subject: New function toggle_videomode X-Git-Tag: V2.12.0~1708 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=85f51dc89a518257a87f7139ab9098254e97c211;p=cc65 New function toggle_videomode git-svn-id: svn://svn.cc65.org/cc65/trunk@1980 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/c128.h b/include/c128.h index 85782aef3..205febd26 100644 --- a/include/c128.h +++ b/include/c128.h @@ -95,6 +95,11 @@ +void toggle_videomode (void); +/* Toggle the video mode between 40 and 80 chars (calls SWAPPER) */ + + + /* End of c128.h */ #endif diff --git a/libsrc/c128/Makefile b/libsrc/c128/Makefile index 938b04222..cad101c59 100644 --- a/libsrc/c128/Makefile +++ b/libsrc/c128/Makefile @@ -26,23 +26,24 @@ #-------------------------------------------------------------------------- # Object files -OBJS = _scrsize.o \ - break.o \ - cgetc.o \ - clrscr.o \ - conio.o \ - crt0.o \ - color.o \ - cputc.o \ - get_tv.o \ - joy_stddrv.o \ - kbhit.o \ - kernal.o \ - mouse.o \ - randomize.o \ - revers.o \ - rs232.o \ - tgi_mode_table.o +OBJS = _scrsize.o \ + break.o \ + cgetc.o \ + clrscr.o \ + conio.o \ + crt0.o \ + color.o \ + cputc.o \ + get_tv.o \ + joy_stddrv.o \ + kbhit.o \ + kernal.o \ + mouse.o \ + randomize.o \ + revers.o \ + rs232.o \ + tgi_mode_table.o \ + toggle_videomode.o #-------------------------------------------------------------------------- # Drivers diff --git a/libsrc/c128/c128.inc b/libsrc/c128/c128.inc index 725314331..e30c3b9b7 100644 --- a/libsrc/c128/c128.inc +++ b/libsrc/c128/c128.inc @@ -48,6 +48,7 @@ NEWLINE = $C363 PRINT = $C322 ; Extended jump table +SWAPPER = $FF5F SETBNK = $FF68 ; --------------------------------------------------------------------------- diff --git a/libsrc/c128/toggle_videomode.s b/libsrc/c128/toggle_videomode.s new file mode 100644 index 000000000..098989d7c --- /dev/null +++ b/libsrc/c128/toggle_videomode.s @@ -0,0 +1,13 @@ +; +; Ullrich von Bassewitz, 2003-02-13 +; +; void toggle_videomode (void); +; /* Toggle the video mode between 40 and 80 chars (calls SWAPPER) */ +; + + .export _toggle_videomode + + .include "c128.inc" + + _toggle_videomode = SWAPPER +