From edff35dbe10552a1fa57d6be8af9117e85dc6ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Fri, 17 Jun 2022 09:05:12 +0100 Subject: [PATCH] docs: new goals and initial neo structure --- README.md | 7 +++++++ src/chip8_neo.rs | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b8e6c8..9c6c8ae 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,13 @@ CHIP-8 emulator written in rust 🦀. +## Goals + +* Performance 🎠+* Separation of concerns - presentation vs logic +* Simplicity +* Compatibility + ## Inspiration * [Guide to making a CHIP-8 emulator](https://tobiasvl.github.io/blog/write-a-chip-8-emulator) diff --git a/src/chip8_neo.rs b/src/chip8_neo.rs index 3698867..3d50589 100644 --- a/src/chip8_neo.rs +++ b/src/chip8_neo.rs @@ -1,3 +1,8 @@ +pub const DISPLAY_WIDTH: usize = 64; +pub const DISPLAY_HEIGHT: usize = 32; +pub const RAM_SIZE: usize = 4096; + pub struct Chip8Neo { - vram: [u8], + ram: [u8; RAM_SIZE], + vram: [u8; DISPLAY_WIDTH * DISPLAY_HEIGHT], } -- GitLab