simulation done
This commit is contained in:
@@ -9,9 +9,12 @@
|
||||
|
||||
#include "bf.h"
|
||||
|
||||
#define SIMULATION_SIZE (NUM_PROGRAMS * SIZEOF_PROGRAM)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
bf_token memory[NUM_PROGRAMS * SIZEOF_PROGRAM];
|
||||
u64 a, b;
|
||||
bf_token memory[SIMULATION_SIZE];
|
||||
} simulation_t;
|
||||
|
||||
void simulation_iterate(simulation_t *sim);
|
||||
@@ -22,12 +25,14 @@ void simulation_draw(simulation_t *sim);
|
||||
/* Copyright (C) 2026 Aryadev Chavali
|
||||
|
||||
* 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
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License Version 2 for
|
||||
* details.
|
||||
|
||||
* You may distribute and modify this code under the terms of the GNU General
|
||||
* Public License Version 2, which you should have received a copy of along with
|
||||
* Public License Version 2, which you should have received a copy of along
|
||||
with
|
||||
* this program. If not, please go to <https://www.gnu.org/licenses/>.
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user