]> git.sur5r.net Git - cc65/commitdiff
Changed the prototype of videomode() to take and return an unsigned instead of
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 8 Sep 2009 16:25:12 +0000 (16:25 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 8 Sep 2009 16:25:12 +0000 (16:25 +0000)
an unsigned char. Two more video mode constants as discussed on the list.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4133 b7a2c559-68d2-44c3-8de9-860c34a00d81

doc/funcref.sgml
include/c128.h
libsrc/c128/videomode.s

index 73d14432a133abbf0b5e13c57e0dcbfe9b4c72fe..294265c78ec934c8b7f93b920ccb3a0b033920de 100644 (file)
@@ -5032,7 +5032,7 @@ used in presence of a prototype.
 <descrip>
 <tag/Function/Switch to either 40 or 80 column mode.
 <tag/Header/<tt/<ref id="c128.h" name="c128.h">/
-<tag/Declaration/<tt/unsigned char __fastcall__ videomode (unsigned char Mode);/
+<tag/Declaration/<tt/unsigned __fastcall__ videomode (unsigned Mode);/
 <tag/Description/Switch to 40 or 80 column mode depending on the argument. If
 the requested mode is already active, nothing happens. The old mode is returned
 from the call.
index d4df9919bb34c3bec23007c16f2cf153bba0a3ad..37a813f8c1ef775a7ee4c9663b3f917d470e10df 100644 (file)
@@ -62,7 +62,7 @@
 #define COLOR_CYAN             0x03
 #define COLOR_VIOLET           0x04
 #define COLOR_GREEN            0x05
-#define COLOR_BLUE             0x06       
+#define COLOR_BLUE             0x06
 #define COLOR_YELLOW           0x07
 #define COLOR_ORANGE           0x08
 #define COLOR_BROWN            0x09
 #define COLOR_GRAY3            0x0F
 
 /* Video mode defines */
-#define VIDEOMODE_40COL         0x00
-#define VIDEOMODE_80COL         0x80
+#define VIDEOMODE_40x25         0x00
+#define VIDEOMODE_80x25         0x80
+#define VIDEOMODE_40COL         VIDEOMODE_40x25
+#define VIDEOMODE_80COL         VIDEOMODE_80x25
 
 
 
index 3e34a65d203486b7306d2eb93be90c5b0b78eaf3..7825eca2c44f6301027c1149852e3f5f251c622a 100644 (file)
@@ -1,12 +1,12 @@
 ;
 ; Ullrich von Bassewitz, 2009-09-07
 ;
-; unsigned char __fastcall__ videomode (unsigned char Mode);
+; unsigned __fastcall__ videomode (unsigned Mode);
 ; /* Set the video mode, return the old mode */
 ;
 
        .export         _videomode
-        .import         SWAPPER, BSOUT  
+        .import         SWAPPER, BSOUT
 
         .include        "c128.inc"