Skip to content

Ersanio/Super-Chip8x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Chip8x

The Super Chip8x is a Chip-8 Emulator for the Super Nintendo Entertainment System, written entirely in the 65c816 assembly language (and SPC-700 assembly for the audio).

Screenshots

title pong bricks tetris maze

Features

The emulator supports the option to mapping the 16 Chip-8 keys to SNES buttons (except for start and select) per ROM basis. The user will have to define the mapping manually. SNES button combinations are supported (e.g. B could be key 1, L+B could be key 2).

Some features (such as the sound pitch, the screen color, pixel color, etc.) can be controlled in const.asm

Usage

Assemble chip8.asm by using the asar assembler.

To add ROMs, a few steps need to be done:

  • chip8.asm: label "GAMES": Add the path to your ROM with labels:
ROMNAME:
	incbin c8games/ROMNAME ;the name of the file. Doesn't have to match label name
.END
  • chip8.asm: label "ROMS": Add a pointer to the path you added in above step:
  dl ROMNAME : dw ROMNAME_END-ROMNAME ; the name of the labels surrounding the ROM file
  • chip8.asm: label "ControllerLayouts": Add a pointer to a controller layout, CDefault if none.
  • Make sure the ControllerLayouts is in sync with the ROMs table e.g. if the "tetris" game is the first game in ROMs, it has to be the first game in ControllerLayouts also.
  • chip8.asm: below pointertable "ControllerLayouts": Add a controller layout in the format "dw !pressedbutton : db $emulatedkey", repeat per key.

To switch between ROMs:

  • Use Start to go forward a ROM
  • Use Select to go backwards a ROM

Each ROM switch assumes a hard reset, re-initializing each Chip-8 register to their default values.

About

A Chip-8 Emulator for the Super Nintendo Entertainment System.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published