GithubHelp home page GithubHelp logo

INC on byte arrays about fastbasic HOT 2 OPEN

dmsc avatar dmsc commented on May 22, 2024
INC on byte arrays

from fastbasic.

Comments (2)

dmsc avatar dmsc commented on May 22, 2024

Hi!

Think I got a bug.

inc a(1)

This works as expected with WORD arrays but gives an error with BYTE arrays

Yes, INC (and DEC, GET, INPUT, and generally all the other statements that expect a variable) only work with WORDS, not with BYTEs.

To support bytes, we would need a new statement, as the current ones write on a WORD location (so they write two bytes).

If you really need that, I could implement it, it would be about 15 extra bytes in the IDE.

Have Fun!

from fastbasic.

ukcroupier avatar ukcroupier commented on May 22, 2024

There's no desperate need for it, INC is more of a bonus feature than a necessity. 15 bytes doesn't sound like a lot, so if it doesn't hinder your overal plans it would be nice to have.

from fastbasic.

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.