cc65/libsrc
Oliver Schmidt 04cc463452 Implemented some CONIO peek functions.
Please refer to https://github.com/cc65/cc65/pull/532 for background info.

I wrote in https://sourceforge.net/p/cc65/mailman/message/35873183/

===
cputs() wraps to the next line if the strings is too long to fit in the current line. I don't know if it's worth the effort to allow cpeeks() to continue reading from the next line. I'd like to discuss this aspect with the actual implementers.
===

This is still as unclear today as it was when I wrote the above. Therefore this change just doesn't add cpeeks() at all.

Since f8c6c58373 the Apple II CONIO implementation doesn't "need" revers() anymore - meaning that (nearly) every possible value can be placed in VRAM with a straight cputc() (without the need for a previous revers(1)).

The implementation of cpeekc() leverages that cputc() ability by always returning the value that can be fed into cputc() without a previous revers(1). Accordingly, cpeekrevers() always returns 0.

So after the sequence revers(1); cputc(x); a cpeekc() will return a value different from x! However, I don't see this behavior braking the cpeekc() contract. I see the cpeekc() contract being defined by the sequence textcolor(cpeekcolor()); revers(cpeekrevers()); cputc(cpeekc()); placing the very same value in VRAM that there was before. And that contract is fulfilled.
2020-07-12 22:19:55 +02:00
..
apple2 Implemented some CONIO peek functions. 2020-07-12 22:19:55 +02:00
atari Split libref.s into multiple files to prevent inclusion of unnecessary code. 2020-06-04 23:24:24 +02:00
atari2600 ctype size optimization 2020-02-03 20:45:09 +01:00
atari5200 atari5200: update docs for recent conio changes 2019-04-13 11:07:06 +02:00
atmos Shortened names and adjusted style. 2020-04-02 22:58:16 +02:00
c16 Update status.s 2019-11-20 12:54:47 +01:00
c64 C64 soft80-conio cgetc: save 14 cycles in invertcursor 2020-07-11 17:46:29 +02:00
c128 Fix handling of charcodes 254 and 255, fixes issue #988 2020-07-08 00:48:39 +02:00
cbm Shortened names and adjusted style. 2020-04-02 22:58:16 +02:00
cbm510 Fix handling of charcodes 254 and 255, fixes issue #988 2020-07-08 00:48:39 +02:00
cbm610 Fix handling of charcodes 254 and 255, fixes issue #988 2020-07-08 00:48:39 +02:00
common Shortened names and adjusted style. 2020-04-02 22:58:16 +02:00
conio Further optimizations in common/conio. 2018-05-22 16:00:05 +02:00
creativision Changes resulting from 2nd code review 2020-02-03 20:45:09 +01:00
cx16 Updated the cx16 library to the Commander X16's ROM prerelease 37. 2020-05-02 13:46:06 -04:00
dbg Removed unnecessary #include <cc65.h> from convert.c 2019-11-19 14:08:00 +01:00
em Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
gamate Changes resulting from 2nd code review 2020-02-03 20:45:09 +01:00
geos-apple Removed unnecessary #include <cc65.h> from convert.c 2019-11-19 14:08:00 +01:00
geos-cbm moved to better folder location 2018-12-30 18:57:46 +01:00
geos-common Shortened names and adjusted style. 2020-04-02 22:58:16 +02:00
joystick Removed IRQ support from joystick drivers. 2018-02-01 22:38:36 +01:00
lynx Some style adjustments. 2020-04-02 10:42:06 +02:00
mouse Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
nes Preserve the accu 2020-04-06 18:13:54 +02:00
none ctype size optimization 2020-02-03 20:45:09 +01:00
osic1p ctype size optimization 2020-02-03 20:45:09 +01:00
pce Changes resulting from 2nd code review 2020-02-03 20:45:09 +01:00
pet Remove trailings spaces from CBM-related asm files 2019-03-22 22:54:05 +01:00
plus4 Fix handling of charcodes 254 and 255, fixes issue #988 2020-07-08 00:48:39 +02:00
runtime Optimize sign extension. 2019-11-07 21:45:19 +01:00
serial Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
sim6502 ctype size optimization 2020-02-03 20:45:09 +01:00
supervision ctype size optimization 2020-02-03 20:45:09 +01:00
telestrat Fixed the name of the driver 2020-05-28 08:50:20 -04:00
tgi Allowed the TGI API to support 256 colors. 2020-06-04 12:58:05 -04:00
vic20 Added a 160x192x2 TGI (graphics) driver to the VIC-20 library. 2020-07-08 05:55:30 -04:00
zlib zlib: Use correct (un)signedness of char in prototypes and functions. 2019-06-19 19:01:30 +02:00
Makefile Created a target and a library for the Commander X16 prototype computer. 2019-09-27 03:38:51 -04:00