1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00
cc65/libsrc
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
..
apple2 Made Apple II CONIO more flexible. 2018-08-20 00:30:17 +02:00
atari Added dummy clock_settime() for the Atari. 2018-08-18 01:36:56 +02:00
atari2600 Add C support for Atari 2600 (VCS) 2017-01-13 21:12:22 +01:00
atari5200 Removed IRQ support from joystick drivers. 2018-02-01 22:38:36 +01:00
atmos Replaced _systime with clock_gettime. 2018-08-15 16:06:44 +02:00
c16 Replaced _systime with clock_gettime. 2018-08-15 16:06:44 +02:00
c64 Express assumption about struct timespec. 2018-08-18 01:29:40 +02:00
c128 Express assumption about struct timespec. 2018-08-18 01:29:40 +02:00
cbm Added clock_getres() for CBMs. 2018-08-15 19:40:27 +02:00
cbm510 Fixed the system banking in the cbm510 and the cbm610 targets' versions of clock_gettime() and clock_settime(). 2018-08-19 17:12:54 -04:00
cbm610 Fixed the system banking in the cbm510 and the cbm610 targets' versions of clock_gettime() and clock_settime(). 2018-08-19 17:12:54 -04:00
common Optimize for size. 2018-08-19 14:35:30 +02:00
conio Further optimizations in common/conio. 2018-05-22 16:00:05 +02:00
creativision Removed IRQ support from joystick drivers. 2018-02-01 22:38:36 +01:00
dbg Added "popptr1" which is of common use to save some bytes. 2018-05-20 15:30:18 +02:00
em Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
gamate Removed IRQ support from joystick drivers. 2018-02-01 22:38:36 +01:00
geos-apple directory structure changed from driver-centric to target-centric 2016-05-16 19:49:43 +02:00
geos-cbm Made dio_read(), dio_write(), and dio_write_verify() catch sector number conversion errors. 2018-02-23 16:12:12 -05:00
geos-common Replaced _systime with clock_gettime. 2018-08-15 16:06:44 +02:00
joystick Removed IRQ support from joystick drivers. 2018-02-01 22:38:36 +01:00
lynx Removed IRQ support from TGI drivers. 2018-02-02 18:15:45 +01:00
mouse Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
nes Clean-up because of tgidrv_line.inc 2018-05-22 22:32:50 +00:00
none crt0.s ("none" target): fix initialization of sp variable. 2018-01-11 13:15:19 +01:00
osic1p Removed CBM chartype table. 2017-12-02 11:04:59 +01:00
pce Merge branch 'master' into popptr1 2018-05-21 13:33:14 +02:00
pet Use common include file cbm_kernal.inc 2018-07-01 09:56:37 +03:00
plus4 Replaced _systime with clock_gettime. 2018-08-15 16:06:44 +02:00
runtime Some minor cleanups. 2018-07-26 14:35:26 +02:00
serial Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
sim6502 Renamed RAM to MAIN for all disk based targets. 2016-03-07 01:28:55 +01:00
supervision spaces instead of tab 2018-06-06 21:18:47 +02:00
telestrat Merge branch 'master' into popptr1 2018-05-21 13:33:14 +02:00
tgi Fixed some code, to adapt to register-use changes caused by pull request #652. 2018-07-27 09:21:31 -04:00
vic20 TAB to space conversion 2018-06-30 16:25:43 +03:00
zlib Fixed some code, to adapt to register-use changes caused by pull request #652. 2018-07-27 09:21:31 -04:00
Makefile Implemented the requested changes. 2018-01-04 11:17:20 +01:00