]> git.sur5r.net Git - cc65/commitdiff
New function toggle_videomode
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 13 Feb 2003 21:12:11 +0000 (21:12 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 13 Feb 2003 21:12:11 +0000 (21:12 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1980 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/c128.h
libsrc/c128/Makefile
libsrc/c128/c128.inc
libsrc/c128/toggle_videomode.s [new file with mode: 0644]

index 85782aef377c307797f82ce521c92ce10b71426d..205febd26711a6579a555eb978211ad7204c3b8b 100644 (file)
 
 
 
+void toggle_videomode (void);
+/* Toggle the video mode between 40 and 80 chars (calls SWAPPER) */
+
+
+
 /* End of c128.h */
 #endif
 
index 938b042224973694361b7add1c00dce2f0984344..cad101c5900fd2d38629baa86ec0358c612ba3bf 100644 (file)
 #--------------------------------------------------------------------------
 # 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
index 7253143319fb40f235d5549c8ec0b2ef80eb838d..e30c3b9b73a1e5c46d3a480a1b43f249bb665d80 100644 (file)
@@ -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 (file)
index 0000000..098989d
--- /dev/null
@@ -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
+