1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-15 11:05:56 +00:00
cc65/include
Oliver Schmidt f8c6c58373 Made Apple II CONIO more flexible.
Originally the Apple II had a 64 char set and used the upper two bits to control inverse and blinking. The Apple //e brought then an alternate char set without blinking but more individual chars. However, it does _not_ contain 128 chars and use the upper bit to control inverse as one would assume. Rather it contains more than 128 chars - the MouseText chars. And because Apple wanted to provide as much backward compatibility as possible with the original char set, the alternate char set has a rather weird layout for chars > 128 with the inverse lowercase chars _not_ at (normal lowercase char + 128).

So far the Apple II CONIO implementation mapped chars 128-255 to chars 0-127 (with the exception of \r and \n). It made use of alternate chars > 128 transparently for the user via reverse(1). The user didn't have direct access to the MouseText chars, they were only used interally for things like chline() and cvline().

Now the mapping of chars 128-255 to 0-127 is removed. Using chars > 128 gives the user direct access to the "raw" alternate chars > 128. This especially give the use direct access to the MouseText chars. But this clashes with the exsisting (and still desirable) revers(1) logic. Combining reverse(1) with chars > 128 just doesn't result in anything usable!

What motivated this change? When I worked on the VT100 line drawing support for Telnet65 on the Apple //e (not using CONIO at all) I finally understood how MouseText is intended to be used to draw arbitrary grids with just three chars: A special "L" type char, the underscore and a vertical bar at the left side of the char box. I notice that with those chars it is possible to follow the CONIO approach to boxes and grids: Combining chline()/cvline() with special CH_... char constants for edges and intersections.

But in order to actually do so I needed to be able to define CH_... constants that when fed into the ordinary cputc() pipeline end up as MouseText chars. The obvious approach was to allow chars > 128 to directly access MouseText chars :-)

Now that the native CONIO box/grid approach works I deleted the Apple //e proprietary textframe() function that I added as replacement quite some years ago.

Again: Please note that chline()/cvline() and the CH... constants don't work with reverse(1)!
2018-08-20 00:30:17 +02:00
..
em Fixed missing name and semicolon in two device structs. 2017-08-23 01:46:57 -04:00
geos Added GEOS 1.3 and 1.5 detection. 2018-02-15 15:24:58 -08:00
joystick Removed IRQ support from joystick drivers. 2018-02-02 12:02:52 +01:00
mouse Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
sys Fixed Visual C++ build (and some style adjustments). 2018-08-19 00:01:40 +02:00
tgi Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_6522.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_6525.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_6526.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_6545.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_6551.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_antic.h Improved display list instruction definition for more comfortable use within void data definition. 2017-02-24 00:10:02 +01:00
_gtia.h Atari: CONSOL port of GTIA is readable and writable. 2018-02-02 18:28:52 +01:00
_heap.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_mikey.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_pbi.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_pia.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_pokey.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_riot.h Add C support for Atari 2600 (VCS) 2017-01-13 21:12:22 +01:00
_sid.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_suzy.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_ted.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_tia.h Add C support for Atari 2600 (VCS) 2017-01-13 21:12:22 +01:00
_vdc.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_vic2.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_vic.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
6502.h Added 2a03/2a07 and HuC6280 detection. 2018-03-01 14:57:42 -08:00
accelerator.h Added C64 Turbo Master accelerator code and documentation. 2018-04-30 14:30:35 -07:00
apple2_filetype.h Corrected comment formatting 2017-07-28 12:16:55 -04:00
apple2.h Made Apple II CONIO more flexible. 2018-08-20 00:30:17 +02:00
apple2enh.h Made Apple II CONIO more flexible. 2018-08-20 00:30:17 +02:00
assert.h Made _afailed() and uncompress() be fastcall functions. 2015-03-13 07:35:47 -04:00
atari2600.h Harmonized the style of including headers from headers. 2018-02-02 12:28:22 +01:00
atari5200.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
atari_atascii_charmap.h Allow use of different charmaps on Atari target 2016-08-19 17:27:41 +02:00
atari_screen_charmap.h Internal/screen character mapping: Supressed warnings for re-map and added documentation. 2016-08-27 22:02:08 +02:00
atari.h Harmonized the style of including headers from headers. 2018-02-02 12:28:22 +01:00
atmos.h Missing declaration 2017-11-09 17:36:21 +01:00
c16.h Moved declarations that are common to the C16 and the Plus4 libraries over to their common header. 2018-04-01 15:47:48 -04:00
c64.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
c128.h Added isfast function which returns a 1 when the C128 is in 2MHz mode. 2018-03-20 13:11:24 -07:00
cbm264.h Moved declarations that are common to the C16 and the Plus4 libraries over to their common header. 2018-04-01 15:47:48 -04:00
cbm510.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
cbm610.h Added a definition for the CBM610's first CIA chip. 2018-02-10 16:14:53 -05:00
cbm_filetype.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
cbm.h CBM kernal call SECOND, update cbm.h 2018-05-23 17:37:48 +02:00
cc65.h Add issues from pull request #307. 2016-06-07 12:07:38 +02:00
conio.h Factored out target specific inclusion of target header. 2018-02-02 12:59:05 +01:00
creativision.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
ctype.h Updated comment. 2018-07-26 13:09:21 +02:00
dbg.h Made __fastcall__ be the default calling convention for non-variadic functions. 2015-03-10 05:53:52 -04:00
device.h Added size_t. 2018-02-10 11:45:50 +01:00
dio.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
dirent.h Use macro actually defined in cbm_filetype.h. 2017-11-06 21:02:14 +01:00
em.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
errno.h Implement exec() for Atari XDOS. 2016-06-13 20:40:01 +02:00
fcntl.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
gamate.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
geos.h Harmonized the style of including headers from headers. 2018-02-02 12:28:22 +01:00
inttypes.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
iso646.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
joystick.h Factored out target specific inclusion of target header. 2018-02-02 12:59:05 +01:00
limits.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
locale.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lynx.h Harmonized the style of including headers from headers. 2018-02-02 12:28:22 +01:00
lz4.h Edit comment style, add second const 2017-06-09 10:35:16 +03:00
modload.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
mouse.h Keep low level VIC sprite stuff out of user code. 2015-10-09 18:33:35 +02:00
nes.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
o65.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
osic1p.h Fix line endings (CRLF -> LF) on all affected files. 2017-03-10 11:21:14 +01:00
pce.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
peekpoke.h
pen.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
pet.h cbm stuff from greggs pull request 2017-12-11 19:52:11 +01:00
plus4.h Moved declarations that are common to the C16 and the Plus4 libraries over to their common header. 2018-04-01 15:47:48 -04:00
serial.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
setjmp.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
signal.h
stdarg.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
stdbool.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
stddef.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
stdint.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
stdio.h Harmonized the style of including headers from headers. 2018-02-02 12:28:22 +01:00
stdlib.h Added explicit settings of calling conventions in pointer-to-function declarations in system and library headers. 2015-06-22 00:15:48 -04:00
string.h Fixed strpbrk(). 2018-05-29 14:29:50 -04:00
supervision.h Normalized the definitions of structs in <supervision.h>. 2018-02-06 08:52:36 -05:00
target.h Factored out target specific inclusion of target header. 2018-02-02 12:59:05 +01:00
telestrat.h Now setPixel works in TGI. 2017-10-20 21:03:30 +02:00
tgi.h Factored out target specific inclusion of target header. 2018-02-02 12:59:05 +01:00
time.h Replaced _systime with clock_gettime. 2018-08-15 16:06:44 +02:00
unistd.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
vic20.h Added the vic20 georam emd. 2018-03-19 11:34:41 -07:00
zlib.h Fix line endings (CRLF -> LF) on all affected files. 2017-03-10 11:21:14 +01:00