Giter Site home page Giter Site logo

Comments (3)

andwn avatar andwn commented on September 28, 2024

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.

Dasutin avatar Dasutin commented on September 28, 2024

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.

andwn avatar andwn commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.