Git Product home page Git Product logo

Comments (5)

ISSOtm avatar ISSOtm commented on July 21, 2024

This seems to be about the same as #97 (please see there for further details): there's no reason against them (see #265 for implementation ideas), but they would require a lot of effort to implement in the current codebase, and neither of the current maintainers are up for it.

from rgbds.

aaaaaa123456789 avatar aaaaaa123456789 commented on July 21, 2024

It's probably worth mentioning that you're expecting the assembler to treat the number of digits you write as meaningful, which it never does. That's the source of your initial confusion here. $02, $0002, $00000002, and even just 2 are all the same exact value — they will not be processed any differently. charmap "!", $0002 is exactly the same as charmap "!", $02 or charmap "!", 2.

from rgbds.

sabra55 avatar sabra55 commented on July 21, 2024

It's probably worth mentioning that you're expecting the assembler to treat the number of digits you write as meaningful, which it never does. That's the source of your initial confusion here. $02, $0002, $00000002, and even just 2 are all the same exact value — they will not be processed any differently. charmap "!", $0002 is exactly the same as charmap "!", $02 or charmap "!", 2.

well, you could always have a charmap16 or something that expects there to be a 16-bit value, and normal charmap could keep being 8-bit

for instance,

charmap16 "A", $01   ; will be treated as $0001
charmap   "a", $0002 ; will be treated as $02

from rgbds.

ISSOtm avatar ISSOtm commented on July 21, 2024

charmap16 would be a restricted version of #97 and #265. And, anyway, the problem is in the complexity of implementing of emitting 16-bit charmaps, not in the directive itself.

from rgbds.

SnDream avatar SnDream commented on July 21, 2024

Hi, try using a customised version of rgbds that adds support for 16-bit charmap
https://github.com/SnDream/rgbds
Currently at version 0.6.1
example: https://github.com/SnDream/pokecrystal_cn/blob/release_cn/charmap_cn.asm
There is a MACRO version of #97 without compiling custom rgbds, but it's not well suited to existing large projects.

from rgbds.

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.