1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00

Changed the prototype of videomode() to take and return an unsigned instead of

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
This commit is contained in:
uz 2009-09-08 16:25:12 +00:00
parent 6c87aa64be
commit 931b6418bf
3 changed files with 8 additions and 6 deletions

View 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.

View 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
@ -74,8 +74,10 @@
#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

View 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"