orac81 information 72 glöps
- general:
- level: user
- personal:
- first name: a
- last name: millett
- 128b Linux MS-Dos This is the (one dimensional) Life!
- Here is the Turbo-C version using the "TCTINY" library.. (180 bytes)
Code:/* CLIFE1D.C - Classic 1D Cellular Automata Generator. (C) A.Millett 1992-2025. Released as free software under GNU GPL3 license. (See: www.gnu.org/licenses/gpl-3.0.html ) Simplified one Dimensional Cellular Automata pattern Generator, for DOS. Hit SPACE for next pattern, ESC to quit. (type CLS or MODE 80 after) Uses MOD 5 sum of 3 cells above for next gen. For DOS/VGA, minimal version written in <256 bytes for TurboC + TCTINY lib. To build: TCTINY [TC3PATH] XLIFE2Dx to build tiny .COM file (<1k) (See TCTINY.TXT for details on using TCTINY library) Code from LIFE17.C, XLIFE2D4.C .. ->CLIFE1D-104 (6.5.2025) Make smaller/faster, sim to NASM version. ->CLIFE1D-105 (6.5.2025) (180 bytes) */ typedef unsigned char BYTE; typedef unsigned int UINT; #include "tctiny.c" BYTE far *pTop = (BYTE far *) ((unsigned long) 0xa0000000L); /* Vdu top, also used as "Rules" array */ #define XMOD 5 void main () { register BYTE far *pVdu; UINT x; UINT rnd = 0xa000; /* Set VGA video mode 13h 320x200x256 */ IO_VIDEOMODE (0x13); do { /* Top line is a "rules" lookup table for rest of screen */ for (x = 0; x < 319; x ++) { rnd += x; rnd += rnd + (rnd >> 15); rnd ^= (rnd >> 8); pTop [x] = rnd; } /* Draw main screen, each new cell based on state of 3 above. */ pVdu = pTop; do { pVdu [321] = pTop[(*pVdu+pVdu[1]+pVdu[2]) % XMOD] ; pVdu ++; } while ((UINT) pVdu); /* Ok, check for user key hit */ do { IO_GETKEY (x); } while (x == 0); } while (x != 27); /* IO_VIDEOMODE (3); */ }
And another screenshot..

- isokadded on the 2025-05-07 00:45:21
- 128b Linux MS-Dos This is the (one dimensional) Life!
- This is a version of the classic 1D Cellular Automata pattern generator, for 8086 DOS/VGA, in just 71 Bytes!
This is an old-school (and well known) effect, but it uses a different approach to most other programs I have seen, in particular I think using MOD 5 generates interesting graphics.
When running, hit SPACE for next pattern, ESC to quit. (CLR or MODE 80 after)
See file "life1d.txt" for more details.
There is an SDL2/linux version in the zip file too. See "sdl_life" folder and "sdl_life1d.txt" for details.

There is a Turbo-C "TINYTC" version of the code (180 bytes) in the TC folder, and my original 1992 shareware version, which actually has a CGA option.
Also a load of pix in the "screenshot" folder.
I expect someone here will tell me it can be done in 32 bytes! - isokadded on the 2025-05-07 00:33:03
- 128b MS-Dos This is the Life!
- Wow, I figured it could be <64b, but 32b is really impressive.
Anyway this is an link to run this one:
http://twt86.co/?c=uBMAzRC4oKCOwLfQKdgw4CaIhwAFS3X0t9pTJooHJAGIh6gCS3X0W7kLAzHAUwKHqAICh6kCAoeqAoHDQAH%2BzXXsW4qn6QMo4DwEfQo8AnwGdQYI5HUCsQAmiI9BAUt1x7QBzRZ0scM%3D - isokadded on the 2025-05-02 19:20:12
- 128b MS-Dos This is the Life!
- DLIFE.ASM - The Classic game of Life. (C) A.Millett 2014-2025.
Released as free/open software under the terms of the GNU GPL3 license.
See: www.gnu.org/licenses/gpl-3.0.html
This is the classic "Game of Life", in 8086 assembly, for VGA PCs.
The DLIFEMIN.COM version is only 104 bytes. It could be a bit smaller
too, using di,si and instructions like loopnz, stosb etc.
The "min" version just generates random life until the user hits a key.
The main DLIFE.COM version has some simple edtiting commands:
C: Clear the screen
R: Fill screen with random data.
A: Auto run life (ENTER Stops)
ENTER: Step 1 generation
Cursor up/down/left/right: Move edit cursor
SPACE: Toggle current pixel.
ESC: Exit
The source code is included. The NASM assmebler is needed to compile it.
To assemble the code, use: NAS2COM dlife
or: NASM -f bin dlife.asm -o dlife.com
To make a very small version, I took a few short cuts. For instance,
the program should really "wrap" the top/bottom/left/right properly,
I just render the algorithm on the screen in one go, to a mem buffer.
Manybe the non-minimal version should do that, but it still works in
principle. - isokadded on the 2025-05-02 17:11:26
- demotool Commodore 64 Wild Llama2.C64 by Elysium [web]
- It are raining not here also..
- rulezadded on the 2025-05-02 13:02:48
- 512b MS-Dos CGA Plasma
- I have added SDL-PLASMA, VGA-PLASMA, and Turbo-C version to the original cgapkas.zip, same link..
- isokadded on the 2025-04-30 18:07:20
- 256b MS-Dos Party.DLL by Desire [web] & Haujobb
- A demo inside a demo in 256b..
- rulezadded on the 2025-04-29 13:14:54
- 64k Amiga AGA 1st Place by Winners of Revision
- Great demo, A1 Seller, would buy again!!!!!!1!!!
- sucksadded on the 2025-04-29 12:10:56
- 8k Windows Pac-Quack by Archee [web]
- oh and ++
- rulezadded on the 2025-04-29 11:37:25
- 8k Windows Pac-Quack by Archee [web]
- completly quackers!
- isokadded on the 2025-04-29 11:36:46
account created on the 2025-04-23 15:31:18
