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
<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.
#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
;
; 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"