Comments (4)
I think there is an unmerged pull request with a function to access string size. I'm not sure if/when it'll be merged, though. If I remember correctly, my concern with it was that I wanted clarity in the naming right away. Since Asar 2.0 is going to support UTF-8, I wanted a clear distinction between "byte length" and "character length" of strings. Though I don't remember if we ever reached a consensus there.
Actually, I couldn't find the pull request when looking for it right now, so I don't remember if it was rejected or already merged into some branch...
from asar.
Maybe #201 ?
Are you talking about the https://github.com/RPGHacker/asar/tree/asar_2_beta branch? If yes, are the docs updated? If so, I can give it a try and some feedback if you like :)
from asar.
Yeah, I think that was the one.
Yeah, that's the current Asar 2.0 dev branch. I don't know how up-to-date the documentation on that branch is. I always try to update it whenever I make larger changes, but I'm not sure if the same is necessarily true for all collaborators, so that branch might have a few features (and/or WIP features) that aren't documented yet.
from asar.
So I managed to achieve my goal with the following code:
macro CreateLut(...)
fillbyte $00
!idx #= 0
while !idx < sizeof(...)
db "<...[!idx]>"
padbyte $00
pad $108000+(!idx+1)*12
!idx #= !idx+1
endwhile
endmacro
%CreateLut("All", "A", "And", "But", "Come", "Dream", "Deathtole") ; and so forth...
It's not pretty, but does the job ;)
from asar.
Related Issues (20)
- Namescaped incsrc
- Patching to multiple ROMS/files at once
- A command to push/pull/reset all global state
- INC with "non-static" label HOT 9
- Bugs that only troublemakers will find HOT 3
- petition to ban if+endwhile HOT 1
- Segfault on asar_patch when using as a static library HOT 1
- relative branch out of bounds is not checked for SPC700 bbs/bbc commands HOT 1
- `optimize address mirrors` does not handle bank 7E optimization like `ram` does
- org Label in freespace yields too small rats tags HOT 1
- datasize fails when used in assert or print before label is defined HOT 6
- Finding freespace beyond on the end of the ROM only works if the value is 0 HOT 2
- Allow branches to take full addresses HOT 1
- asar_getlabelval throws C++ exception for missing label
- Please document deprecation of features HOT 4
- Segfault with invalid syntax in an assert HOT 2
- strange and hard bug about labels and loops, sample code provided
- allow math in labels HOT 15
- arch superfx is haunted HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asar.