Skip to content

blue112/hemu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hemu

Haxe NES Emulator

This emulator cannot run any game currently

Currently mostly an complete 6502 CPU VM, with unofficial NES instruction added

TODO

PPU Support

PPU is currently absolutly not supported. It will be handled in a future version.

How to compile

To compile Hemu, you'll need the lastest 3.0 Haxe version and the 2.0.0 Neko version.
Create the folder bin with mkdir bin
Then, just run haxe make.hxml will produce the out.n file in the bin/ folder.
You can run test with nes_test_diff.sh, or run a random rom with neko out.n random.rom

Sample output

Sample output

From left to right :

  • Current PC (Program Counter)
  • Name of the OpCode
  • Corresponding opcode byte
  • Accumulator Value (AC)
  • X Register Value (RX)
  • Y Register Value (RY)
  • Stack Pointer (SP)
  • CPU Flags ** Carry Flag ** Zero Flag ** Interrupt Disable ** Decimal Mode ** Break Command ** Overflow Flag ** Negative Flag

Resources

Here are some resources I used to better understand the CPU :

About

Haxe NES Emulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published