summaryrefslogtreecommitdiff
path: root/life.asm
Commit message (Collapse)AuthorAgeFilesLines
* add life loopHEADmainnot_a_robot062025-02-181-7/+166
| | | | | | | | | - add labels for DEAD and ALIVE so I can change what character is which - when return is pressed, start life loop; no more input handling - change s16b and s16b2 to no longer destroy X (needed for life loop) - this is an okay first prototype, but it is slow; could use one byte for 8 cells but that would've been harder to implement - premature optimisation is the root of all evil
* change code to deal with offsets from grid rather than addressing scrennot_a_robot062025-02-171-15/+56
| | | | | | | | memory directly from the get go - this is so i can just store the current offset and modify the previous generation and current generation in one go than changing two separate variables
* handle up/down cursor movementnot_a_robot062025-02-161-32/+41
| | | | | | | - use GETIN kernal routine for handling input than my old crappy way - CLRCHN clears keyboard buffer before use - reset now clears screen - add subroutines a16b and s16b to add and subtract to num, respectively
* use chrout to clear screennot_a_robot062025-02-151-30/+5
| | | | | - turns out there are kernal routines for handling cursors and printing so is the proper way to do things
* add basic cell modifyingnot_a_robot062025-02-151-18/+27
|
* add basic left/right arrow key handlingnot_a_robot062025-02-151-16/+55
|
* initial commitnot_a_robot062025-02-151-0/+119
clear screen and basic key handling, no life related code just yet