Code Monkey home page Code Monkey logo

Comments (2)

pauloscustodio avatar pauloscustodio commented on June 6, 2024

Hi @aralbrec , nice to hear from you, and thanks for reporting.

The code snippet you sent does not show the error. I've committed it to branch issue_2469, and all _Boulder2paletePageN have the same value.

Cany you provide a code that actually fails?
I closed an issue in the same area, #2418, maybe they are related?

from z88dk.

aralbrec avatar aralbrec commented on June 6, 2024

Hi @pauloscustodio,

I'll try to attach a zip here. The sections need to have different amounts of data in them for the $ to return different section offsets.

The file SpriteData_Boulder2.asm contains the error. When the declaration of SprData_StartPage is moved from position AAAA to BBBB, the result is correct.

As is, the incorrect build produces this in the map file:

_Boulder2PalettePage            = $0034 ; addr, public, , SpriteData_Boulder2_asm, PAGE_93_EnemyCode3, SpriteData_Boulder2.asm:12
_Boulder2PalettePage2           = $0037 ; addr, public, , SpriteData_Boulder2_asm, PAGE_50_spriteData_Enemies3, SpriteData_Boulder2.asm:13
_Boulder2PalettePage3           = $0037 ; addr, public, , SpriteData_Boulder2_asm, PAGE_50_spriteData_Enemies3, SpriteData_Boulder2.asm:14

when all three constants should be $37.

Build with:

zcc +zxn --no-crt -m -v SpriteData_Boulder.asm SpriteData_Boulder2.asm -o sb.bin

issue_2469.zip

Yes 2418 looks to be the same issue. I am producing this error from a nightly build a day or two ago.

from z88dk.

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.