# 240p Test Suite for the Neo Geo
Clone into the projects folder of the NeoDev toolchain folder. The NeoDev Toolchain should be located at C:\NeoDev
## Quick Setup
If you're using VSCode, open `ng240ptest.code-workspace` and run the `Build CHAR ROM` and `Build Fix ROM`. Then run the default `Run Build Task`. The default task will run a clean, make, copyroms, and launch the build in MAME.
If you're not using VSCode, use the following below.
1. Build the CROM and SROM. Needs to be done every time contents in the gfx folder are changed.
`make char`
`make fix`
2. Build the PROM.
`make`
3. Copy ROMs to MAME included in the toolchain.
`make copyroms`
4. Run in MAME.
`cd C:\NeoDev\mame`
`mame neogeo 240ptestng -nofilter -keepaspect -skip_gameinfo`
### Audio
Lua is needed to build the v1 rom ATM, using Freem examples and code. The Makefile has the necessary steps
1. Build the M1 and V1 ROMs when samples are needed or z80 code is updated
'make z80'
## MAME Drivers
The following is for the unmodified ROMs. (Checksums not correct)
```
240p Test Suite - Neo Geo
2022
Artemio / Dasutin
```
The following is for the modified ROMs for use with cartridges (Checksums not correct)
```
240p Test Suite - Neo Geo
2022
Artemio / Dasutin
```
For the Neo Geo CD (Copy the CHD image)
```
240p Test Suite Neo Geo CD
2022
Dasutin/Artemio
```
## TODO
General:
- Update Help to reflect all current changes
- Button references after remapping
- new options in patterns that have been modified
- Verify all patterns have 304/320 and 224/256 support when needed
- Verify all patterns follow IRE 100
- Add text in help for cases where this is not followed (SMPTE, EBU and PLUGE)
- Save settings to backup RAM/Memory Card (?)
- Maybe have a Memory Card Viewer (?)
- Help for HCFR, QR code (maybe in menu?)
- Fix Eye Catcher
- Confirm split VROM version works on real cart HW
- Clean makefile (?)
Patterns:
- Confirm monoscope patterns for the Neo Geo PAR (Keith has been notified)
Video tests:
- Fix water palette animations
Audio tests_
- Test current MDFourier pattern in several hw variants and PAL
Hardware Test:
- 68K RAM check (?) maybe in ASM (most probably won't implement, since it wouldn't boot withour working RAM)
## Resources
[Neo Geo Development Wiki](https://wiki.neogeodev.org/index.php?title=Main_Page) - Neo Geo Bible
[68000 ASM Programming for the Neo Geo](https://www.chibiakumas.com/68000/neogeo.php) - Another excellent source of information
[NeoBitz SDK](http://sebastianmihai.com/neogeo-neo-thunder.html) - SDK used for Neo Geo.
[DATlib Video Library](https://www.yaronet.com/topics/189390-datlib-update-03) - Library for graphics. Must be used with NeoBitz SDK.
[Neo Geo Sprite Viewer](https://neospriteviewer.mattgreer.dev/) - View the sprite tiles of a Neo Geo game
[NGFX GraphicsEditor](https://blastar.citavia.de/index.php?controller=post&action=view&id_post=37) - Interesting tool for graphics editing for use with the Neo Geo
[NGFX ColorFadeCalculator](https://blastar.citavia.de/index.php?controller=post&action=view&id_post=34) - Another interesting tool for calculating gradients. Might be useful for color bars pattern
[NeoBuilder Homebrew GUI](https://bidouillouzzz.blogspot.com/2022/02/neobuilder-homebrew-gui.html#more) - Used for converting ROMs to .neo for use with the Terraonion NeoSD
[Matt's Neo Stuff - Neo Geo Dev Tools](https://neogeo.mattgreer.dev/tools) - Great collection of Neo Geo Dev Tools
[NGFX Soundbuilder](https://blastar.citavia.de/index.php?controller=blog&action=view&category=ngfx-toolchain) - Potential tool for MDF
[Freem's Neo Geo Dev Page](http://www.ajworld.net/neogeodev/) - Useful information (sound basis)
[Freem's - My Ideal Toolset](http://www.ajworld.net/neogeodev/ideal_tools.html) - Insight
[ngdevkit-examples](https://github.com/dciabrin/ngdevkit-examples) - Collection of Neo Geo programs that can be built with ngdevkit