color-flood-for-amstrad-cpc
apultra
color-flood-for-amstrad-cpc | apultra | |
---|---|---|
1 | 1 | |
3 | 98 | |
- | - | |
10.0 | 3.3 | |
over 1 year ago | about 1 year ago | |
C | C | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
color-flood-for-amstrad-cpc
-
Few lesser known tricks, quirks and features of C
const int myarray[mysize];
* Good news: C can do compile time constant structs and array with deep self-references.
Yes, in C you can define and fully declare complex data structures that are accepted as compile-time constants, including pointers to parts of itself.
See "self-contained, statically allocated, totally const data structure with backward and forward references (pointers)?" for a previous example at https://stackoverflow.com/questions/47037701/can-c-syntax-de...
-----------------
I used this for a game on a retro machine where such a data structure avoids code which would have been several times (perhaps 10 times) bigger: https://github.com/cpcitor/color-flood-for-amstrad-cpc/blob/...
Here's another take showing two variant: where overall construct is an array then a struct: https://gist.github.com/fidergo-stephane-gourichon/792c194e1...
apultra
What are some alternatives?
printf-tac-toe - tic-tac-toe in a single call to printf
pistorm - 68k Hardware Emulator
printbf - Brainfuck interpreter inside printf
PyFastPFor - Python bindings for the fast integer compression library FastPFor.
unzx0_68000 - Free, zlib licensed ZX0 decompressor for the 68000
lzsa - Byte-aligned, efficient lossless packer that is optimized for fast decompression on 8-bit micros
CROSS-LIB - CROSS LIB - A universal 8-bit library and some games built with it
64tass - 64tass - cross assembler for 6502 etc. microprocessors - by soci/singular - [git clone from the original sourceforge repo]
pretty6502 - A pretty printer for 6502, Z80, CP1610, TMS9900, and 8088 assembler code
atari64 - Commodore 64 OS running on Atari 8-bit hardware
salvador - A free, open-source compressor for the ZX0 format
spectrum-desolate - 🕹️ Ported Desolate game from TI-83 Plus to ZX Spectrum