; life2.s is an implementation of Conway's Game of Life for Commodore 64 ; Copyright (C) 2009 Tommi Saviranta ; ; This program is free software: you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation, either version 3 of the License, or ; (at your option) any later version. ; ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with this program. If not, see . ; configuration SCREEN_BORDER = $d020 SCREEN_BG = $d021 ; frame A and B base address SCREEN_A = $0400 SCREEN_B = $2000 ; colour base address COLOUR = $d800 ; character ram CHARRAM = $3000 ; screen dimensions SCREEN_WIDTH = 40 SCREEN_HEIGHT = 25 ; options BOARD_WIDTH = 38 BOARD_HEIGHT = 23 ; NOTE: if you change board size, you'll have to recreate life2-init.s BORDER_COLOUR = 14 BG_COLOUR = 6 MAX_WIDTH = (SCREEN_WIDTH - 2) * 2 #if MAX_WIDTH < BOARD_WIDTH #error "too many cells per row, can only have ", MAX_WIDTH #endif MAX_HEIGHT = (SCREEN_HEIGHT - 2) * 2 #if MAX_HEIGHT < BOARD_HEIGHT #error "too many cells per column, can only have ", MAX_HEIGHT #endif