Comments (3)
Wonder if it has to do with GCC 9 vs 10. I can't get GCC 11 to even compile for SH-2 and have held off upgrading because of it. Will have to compare when I have some time later.
Edit: typo
from marsdev.
I was doing some testing and narrowed down where the problem is coming from. I reverted all changes to m68k_crt1.s. Removed the added linker file md_crt1.ld.
Last I modified the Makefile to remove the changes and add back the old
- m68k_crt0.bin: m68k_crt0.s
- $(MDAS) $(MDASFLAGS) $< -o [email protected]
- $(MDLD) $(MDLDFLAGS) --oformat=binary [email protected] -o $@
- m68k_crt1.bin: m68k_crt1.s $(MDOBJS)
- $(MDAS) $(MDASFLAGS) m68k_crt1.s -o m68k_crt1.o
- $(MDLD) -nostdlib -T md_crt1.ld --oformat=binary m68k_crt1.o $(MDOBJS) -o m68k_crt1.bin
+ m68k_crt%.bin: m68k_crt%.s
+ $(MDAS) $(MDASFLAGS) $< -o [email protected]
+ $(MDLD) -nostdlib --oformat=binary [email protected] -o $@
Making the changes allowed my project to work in Gens. I also make the same changes to the 32x-skeleton example code and it works too.
I also noticed parts of my project where I was printing some text from the Genesis was causing the ROM to freeze on real hardware. I'm not doing it everywhere on my ROM so I didn't catch it before. It works in emulation (except Gens) but was causing some glitching on the top left of the screen. After making those changes, printing text from the Genesis isn't freezing on real hardware, and the glitching on the top left of the screen is gone (Gens works).
Hope this helps narrow the problem down.
from marsdev.
I did that so C code could be run both on SH and M68000 CPUs (the code would be copied into and run from RAM), but guess it's still wonky. Maybe it would be best to revert it for now and try again when I'm in the mood to experiment with 32X again. Or better yet stick to assembly on m68k 😝
from marsdev.
Related Issues (20)
- openSUSE makefile wrong path libexec -> lib64 HOT 4
- Flamewing tools don't build HOT 2
- Update default to version 1.70 HOT 1
- Compilation of Marsdev freezing on Mac OS 10.14 Mojave HOT 2
- Building C for Genesis with newlib results in a broken ROM HOT 8
- Trying to compile genesis rom on Mac (Visual Studio Code) returns error 1: can't open boot.s for reading: No such file or dir. HOT 2
- Error compiling z80-tools HOT 4
- Error when extacting HOT 2
- Download script attempts to write to ~/mars HOT 2
- SGDK game freezes with umapped write on BlastEm depending on resources HOT 5
- Build failing on a 2012 Mac mini running macOS Catalina HOT 1
- Missing MSYS2 builds for lastest two releases HOT 2
- Computing EOF failed HOT 3
- Option to use installed version of m68k-elf-toolchain HOT 4
- Several error's when i try make sgdk HOT 2
- Unable to compile md-skeleton and marsdev install location wrong HOT 7
- Docker build is broken HOT 1
- Issue with building m68k-toolchain-newlib HOT 9
- Error building docker image on Debian GNU/Linux 12 (bookworm) HOT 2
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 marsdev.