Comments (6)
More precisely, the eye catcher plays both on Mame and real hardware if in MVS mode. It doesn't play neither on Mame nor hardware if AES mode.
I tried to modify the crt0.o file at line 59:
dc.b 0x01 /* BIOS shows logo at startup */
But without result. It didn't change anything. Maybe is there a proper way to compile this file in the project ?
from ngdevkit.
Right, let me make this parameter configurable in the link script so that you can override it without using a custom crt0.
from ngdevkit.
I tried to modify the crt0.o file at line 59:
dc.b 0x01 /* BIOS shows logo at startup */
But without result. It didn't change anything. Maybe is there a proper way to compile this file in the project ?
OK so from https://wiki.neogeodev.org/index.php?title=68k_program_header it looks to me that setting this value to 0x2 should be enough to skip eye catcher altogether.
I've created #28 to allow you to configure the value to be passed for your ROM at link time. You would need to change the way you link your elf file:
$ m68k-neogeo-elf-gcc `pkg-config --libs ngdevkit` main.o -Wl,--defsym,rom_eye_catcher=2 -o rom.elf
And you can verify that the correct value is used in the generated ROM with e.g. od:
$ m68k-neogeo-elf-objcopy -O binary -S -R .comment rom.elf rom/202-p1.p1 && dd if=rom/202-p1.p1 of=rom/202-p1.p1 conv=notrunc,swab
$ od -tx1 rom/202-p1.p1 | head -16
0000000 10 00 00 f3 c0 00 02 04 c0 00 08 04 c0 00 0e 04
0000020 c0 00 14 04 c0 00 1a 04 c0 00 1a 04 c0 00 1a 04
0000040 c0 00 1a 04 c0 00 20 04 c0 00 26 04 c0 00 26 04
0000060 c0 00 26 04 c0 00 26 04 c0 00 26 04 c0 00 2c 04
0000100 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
*
0000140 c0 00 32 04 00 00 2c 02 00 00 68 02 00 00 00 00
0000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000200 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
*
0000400 45 4e 2d 4f 45 47 00 4f 39 05 10 00 00 00 10 00
**0000420 00 00 00 00 00 02** 00 00 00 02 00 00 00 02 00 00
0000440 00 02 f9 4e 00 00 90 02 f9 4e 00 00 1c 03 f9 4e
0000460 00 00 1e 03 ff ff ff ff ff ff ff ff ff ff ff ff
0000500 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
the 02 at offset 420 is your flag.
Could you give it a try a check whether it fixes your issue?
from ngdevkit.
Switching the value to 02 gives the expected result. It turns off the eye catcher both on AES and MVS modes.
from ngdevkit.
Switching the value to 02 gives the expected result. It turns off the eye catcher both on AES and MVS modes.
Excellent, merged the PR and closed this issue accordingly. Thanks
from ngdevkit.
Heads up @totologic : I just changed the name of the flag in order to implement #11 without name clash.
from ngdevkit.
Related Issues (20)
- Vertical shrinking & garbage HOT 7
- C++ compile issue HOT 3
- failed to install on macos brew HOT 3
- Debug in mame Help HOT 2
- Neo geo cd conversation help! HOT 3
- unable to locate package error HOT 4
- P ROM size is not enough HOT 19
- Typo in README-mingw.md HOT 5
- Suggestion: Discord Server For ngdevkit. HOT 1
- Support bank switching of P-ROM2
- _backup_ram variables are getting overwritten and clobbered HOT 2
- CI: improve nightly build workflow for the supported package types
- brew rebuild workflow in Azure DevOps HOT 1
- Improve packaging on MSYS2
- MSYS2 packages built in CI should target UCRT64 environment
- Compiling for MSYS2 doesn't work when using parallel builds (make -j)
- Update MSYS2 dependencies for ngdevkit to explicitly depend on PyGame
- MSYS2 pacman 404s when trying to download ngdevkit repo database HOT 7
- Move MSYS2 CI builds to one branch per sub-project HOT 1
- Clean nightly tags in msys2-ngdevkit repository after new commits/builds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngdevkit.