GithubHelp home page GithubHelp logo

gulrak / cadmium Goto Github PK

View Code? Open in Web Editor NEW
45.0 4.0 3.0 4.62 MB

A CHIP-8 variant emulation and development environment

License: MIT License

CMake 1.41% C++ 88.76% C 3.17% HTML 1.31% Python 2.98% Makefile 0.01% Roff 2.37%
chip-8 chip-8-assembler chip-8-debugger chip8-emulator super-chip xo-chip chip8 megachip8 cosmac-vip dream6800

cadmium's People

Contributors

gulrak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cadmium's Issues

Emulator crashes when trying to open a file in a folder of many files

I use Windows x64 version of Cadmium and when I try to open my Chip-8 folder (with 750 files!) the emulator crashes. Here is the log

[2024-05-01T03:06:26.571Z][INFO] : Initializing raylib 4.6-dev
[2024-05-01T03:06:26.571Z][INFO] : Supported raylib modules:
[2024-05-01T03:06:26.571Z][INFO] :     > rcore:..... loaded (mandatory)
[2024-05-01T03:06:26.571Z][INFO] :     > rlgl:...... loaded (mandatory)
[2024-05-01T03:06:26.571Z][INFO] :     > rshapes:... loaded (optional)
[2024-05-01T03:06:26.571Z][INFO] :     > rtextures:. loaded (optional)
[2024-05-01T03:06:26.571Z][INFO] :     > rtext:..... loaded (optional)
[2024-05-01T03:06:26.571Z][INFO] :     > rmodels:... loaded (optional)
[2024-05-01T03:06:26.571Z][INFO] :     > raudio:.... loaded (optional)
[2024-05-01T03:06:26.955Z][INFO] : DISPLAY: Device initialized successfully
[2024-05-01T03:06:26.955Z][INFO] :     > Display size: 1920 x 1080
[2024-05-01T03:06:26.958Z][INFO] :     > Screen size:  512 x 420
[2024-05-01T03:06:26.958Z][INFO] :     > Render size:  512 x 420
[2024-05-01T03:06:26.958Z][INFO] :     > Viewport offsets: 0, 0
[2024-05-01T03:06:26.962Z][INFO] : GLAD: OpenGL extensions loaded successfully
[2024-05-01T03:06:26.962Z][INFO] : GL: Supported extensions count: 386
[2024-05-01T03:06:26.962Z][INFO] : GL: OpenGL device information:
[2024-05-01T03:06:26.962Z][INFO] :     > Vendor:   NVIDIA Corporation
[2024-05-01T03:06:26.962Z][INFO] :     > Renderer: NVIDIA GeForce GTX 960/PCIe/SSE2
[2024-05-01T03:06:26.962Z][INFO] :     > Version:  3.3.0 NVIDIA 552.12
[2024-05-01T03:06:26.962Z][INFO] :     > GLSL:     3.30 NVIDIA via Cg compiler
[2024-05-01T03:06:26.962Z][INFO] : GL: VAO extension detected, VAO functions loaded successfully
[2024-05-01T03:06:26.962Z][INFO] : GL: NPOT textures extension detected, full NPOT textures supported
[2024-05-01T03:06:26.962Z][INFO] : GL: DXT compressed textures supported
[2024-05-01T03:06:26.962Z][INFO] : GL: ETC2/EAC compressed textures supported
[2024-05-01T03:06:26.962Z][INFO] : TEXTURE: [ID 1] Texture loaded successfully (1x1 | R8G8B8A8 | 1 mipmaps)
[2024-05-01T03:06:26.962Z][INFO] : TEXTURE: [ID 1] Default texture loaded successfully
[2024-05-01T03:06:26.963Z][INFO] : SHADER: [ID 1] Vertex shader compiled successfully
[2024-05-01T03:06:26.963Z][INFO] : SHADER: [ID 2] Fragment shader compiled successfully
[2024-05-01T03:06:26.964Z][INFO] : SHADER: [ID 3] Program shader loaded successfully
[2024-05-01T03:06:26.964Z][INFO] : SHADER: [ID 3] Default shader loaded successfully
[2024-05-01T03:06:26.964Z][INFO] : RLGL: Render batch vertex buffers loaded successfully in RAM (CPU)
[2024-05-01T03:06:26.966Z][INFO] : RLGL: Render batch vertex buffers loaded successfully in VRAM (GPU)
[2024-05-01T03:06:26.966Z][INFO] : RLGL: Default OpenGL state initialized successfully
[2024-05-01T03:06:26.969Z][INFO] : TEXTURE: [ID 2] Texture loaded successfully (128x128 | GRAY_ALPHA | 1 mipmaps)
[2024-05-01T03:06:26.969Z][INFO] : FONT: Default font loaded successfully (224 glyphs)
[2024-05-01T03:06:27.006Z][INFO] : AUDIO: Device initialized successfully
[2024-05-01T03:06:27.006Z][INFO] :     > Backend:       miniaudio / WASAPI
[2024-05-01T03:06:27.006Z][INFO] :     > Format:        32-bit IEEE Floating Point -> 32-bit IEEE Floating Point
[2024-05-01T03:06:27.006Z][INFO] :     > Channels:      2 -> 2
[2024-05-01T03:06:27.006Z][INFO] :     > Sample rate:   48000 -> 48000
[2024-05-01T03:06:27.006Z][INFO] :     > Periods size:  1440
[2024-05-01T03:06:27.006Z][INFO] : STREAM: Initialized successfully (44100 Hz, 16 bit, Mono)
[2024-05-01T03:06:27.006Z][INFO] : TIMER: Target time per frame: 16.667 milliseconds
[2024-05-01T03:06:27.006Z][INFO] : TEXTURE: [ID 3] Texture loaded successfully (512x420 | R8G8B8A8 | 1 mipmaps)
[2024-05-01T03:06:27.006Z][INFO] : TEXTURE: [ID 1] Depth renderbuffer loaded successfully (32 bits)
[2024-05-01T03:06:27.008Z][INFO] : FBO: [ID 1] Framebuffer object created successfully
[2024-05-01T03:06:27.009Z][INFO] : TEXTURE: [ID 4] Texture loaded successfully (256x256 | R8G8B8A8 | 1 mipmaps)
[2024-05-01T03:06:27.010Z][INFO] : TEXTURE: [ID 5] Texture loaded successfully (256x192 | R8G8B8A8 | 1 mipmaps)
[2024-05-01T03:06:27.012Z][INFO] : TEXTURE: [ID 6] Texture loaded successfully (256x512 | R8G8B8A8 | 1 mipmaps)
[2024-05-01T03:06:27.012Z][INFO] : TEXTURE: [ID 7] Texture loaded successfully (256x192 | R8G8B8A8 | 1 mipmaps)
[2024-05-01T03:06:27.012Z][INFO] : IMAGE: Data loaded successfully (128x64 | R8G8B8 | 1 mipmaps)
[2024-05-01T03:06:27.012Z][INFO] : IMAGE: Data loaded successfully (128x24 | R8G8B8A8 | 1 mipmaps)
[2024-05-01T03:06:27.012Z][INFO] : TEXTURE: [ID 8] Texture loaded successfully (40x40 | R8G8B8A8 | 1 mipmaps)
[2024-05-01T03:06:27.012Z][INFO] : TEXTURE: [ID 2] Depth renderbuffer loaded successfully (32 bits)
[2024-05-01T03:06:27.013Z][INFO] : FBO: [ID 2] Framebuffer object created successfully
[2024-05-01T03:06:27.017Z][INFO] : TEXTURE: [ID 9] Texture loaded successfully (128x64 | R8G8B8 | 1 mipmaps)
[2024-05-01T03:06:27.018Z][INFO] : Loading known file with sha1: 607c4f7f4e4dce9f99d96b3182bfe7e88bb090ee

Feature request: Add CLI flag to specify opcode variant

Running a source file containing SCHIP or XO-CHIP instructions (ie hires) with -r / --run appears to only partially work.

For example, hires assembles correctly to 00FF, but the instruction is interpreted in CHIP-8 mode and produces an invalid opcode error.

It would be easier to allow manually specifying the opcode variant as a CLI flag than to try to write auto-detect logic.

Feature Request: Add support for using external editors via CLI execution

What

A way to directly start executing & debugging Octo source from the CLI.

At the moment, cadmium -r source.8o loads to the editor rather than immediately compiling & running it.

How

Two options seem easiest:

  1. Execution-specific commands like c-octo's octo-cli and octo-run
  2. Args to force build & debug instead of editing source.

Why

This is probably easier and more generally useful than shoehorning vim keybindings into Cadmium.

If this feature is already present, then it may need to be documented more clearly.

Error in BBnn opcode of VIP-CHIP-8E (v1.1.8)

The BBnn opcode in the v1.1.8 VIP-CHIP-8E mode isn't working correctly. The CDP1802 opcode that should be subtracting the distance was typed as E7 (SEX R7) but is an F7 (SM) for it to work. This also corresponds to the listing of the interpreter.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.