Giter Site home page Giter Site logo

Problem zero size about sgdk HOT 8 CLOSED

VitalyDyachkov avatar VitalyDyachkov commented on July 21, 2024 1
Problem zero size

from sgdk.

Comments (8)

Stephane-D avatar Stephane-D commented on July 21, 2024 3

Fixed ! (looks like -O1 flag break rom_head.c compilation, reverted to DEFAULT_FLAGS)

from sgdk.

D0NM avatar D0NM commented on July 21, 2024 2

Well the problem is:
rom_head.bin is not generated. IT is basically 0 bytes.

The ugly fix (lol)

segas.s
line 52

it uses directive .incbin "file"[,skip[,count]]
so... replace the zero-length file with anything.
And it'd work.

Also it is strange, but SGDK has 2 couples of sega.s + rom_head.c
one is licated in sdgk\src\boot
the other is in the template

from sgdk.

D0NM avatar D0NM commented on July 21, 2024 2

The make file has been changed. There is a bug.

from sgdk.

VitalyDyachkov avatar VitalyDyachkov commented on July 21, 2024 1

Thank you very much, D0NM friend! Downloaded SDK version 1.34 (December 2017), managed to build a starter project!

from sgdk.

VitalyDyachkov avatar VitalyDyachkov commented on July 21, 2024

Thanks for the answer! But I just didn't understand why the .bin file wasn't generated.

from sgdk.

VitalyDyachkov avatar VitalyDyachkov commented on July 21, 2024

That is, you need to roll back to an earlier version?

from sgdk.

VitalyDyachkov avatar VitalyDyachkov commented on July 21, 2024

SGDK 1.70 (February 2022)

  • MAKEFILE
  • added 'EXTRA_FLAGS' entry to makefiles so we can use custom extra compilation flags

Is that what you mean?)

from sgdk.

D0NM avatar D0NM commented on July 21, 2024

My future investigation shows that road_head.c is being compiled.
But the object file is ~ 4K instead of 899 bytes. Also it has some garbage inside, You cannot see the real text strings in this .o file.

On using objcopy.exe it produces the zero length .bin file

from sgdk.

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.