Code Monkey home page Code Monkey logo

Comments (2)

linuxplayground avatar linuxplayground commented on August 18, 2024

+1 here.
I am just encountering the same issue. Can't compile my games. I have yet to figure out what's changed though.

from nabu-lib.

linuxplayground avatar linuxplayground commented on August 18, 2024

Right. I don't know WHY This fixes it, but it _SEEMS to work. Maybe you can test on your end too.

in NABU-LIB.C, change the lines where it looks like ld (INTERUPT_VECTOR_MAP_ADDRESS + ?),hl

I don't think SDCC likes it when we do the addition inside the expression. I tried hardcoding the actual address, and it started compiling ok.

INTERUPT_VECTOR_MAP_ADDRESS is defined as 0xFF00 in NABU-LIB.h

So I just searched for each occurrence of that variable in NABU-LIB.c and changed it to the hardcoded result of whatever expression was being used.

OLD:
ld (INTERUPT_VECTOR_MAP_ADDRESS + 6), hl;

NEW:
ld (0xFF06),hl

@DJSures I know it's been a while since you looked at NABU stuff, but this library does need a bit of TLC.

All the function declarations that don't contain any arguments should be declared thusly:

void myFunc(void) {
   // 
}

IE: void inside the paratheses.

This fixes the warnings about missing prototypes.

from nabu-lib.

Related Issues (5)

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.