gulrak / cadmium Goto Github PK
View Code? Open in Web Editor NEWA CHIP-8 variant emulation and development environment
License: MIT License
A CHIP-8 variant emulation and development environment
License: MIT License
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.
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.
Two options seem easiest:
octo-cli
and octo-run
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.
If during a frame breakpoints are hit or debug stepping takes place, the next run doesn't respect the already started frame and starts a new one.
Feature will be used for comparing trace logs to live machine state being debugged.
The opcode disassembler of the CDP1802 omits the argument bytes of 0x7C (ADCI #<imm>
), 0x7D (SDBI #<imm>
) and 0x7F (SMBI #
`), showing them as single byte opcodes instead of two byte.
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.
The code disassembly panel debugger indents opcodes following an if
opcode, but only in the lower part of the listing. It should show consistent behavior.
I use Windows x64 version of Cadmium and when I try to open my Chip-8 folder (with 753 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.