Comments (3)
This is as designed. The .DB directive is added to have some compatibility with other, existing, assemblers. Adding the negative ASCII feature to this directive would break that compatibility.
Use the SB-Assembler V3 native .DA, .AS, .AT or .AZ directives instead of the .DB directive if you want to use the negative ASCII feature.
from sbasm3.
I fully agree but than change the following on in the documentation:
' | The single quote preceding the ASCII character will return a 7 bit ASCII value of the character, all other bits remain 0. This is called positive ASCII. |
---|---|
" | The double quote preceding the ASCII character will return an 8 bit ASCII value of the character, with the MSB of the byte being 1. This is called negative ASCII and can be used to signal special situations, like bold text or end of string. |
on the https://www.sbprojects.net/sbasm/expressions.php page. with the remark not to use with the .DB directive!!!
I needed this because the old assembler file had: DB 'C' + 80H since .DB 'C' + 80H is not a valid expression in SB-Assembler V3.
I now use .AS -/C/ which is a very clean syntax.
Kind regards,
Maarten Ossevoort
from sbasm3.
from sbasm3.
Related Issues (12)
- Logical negation HOT 1
- LICENSE file missing from source distribution HOT 1
- sbasm exit code = 0 when error is not fatal? HOT 1
- Invalid escape sequences and directory not matching instructions HOT 2
- Incorrect PC relative codegen for 6809 HOT 2
- Cross Reference / MAP file HOT 1
- How to do ? Escaping characters in macros ? HOT 3
- Z180 overlay - some mnemonics are wrong HOT 1
- Expression should have more power HOT 1
- Typo in "cr6800.py" HOT 1
- Address calculations in SC/MP still not working on page wrap 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 sbasm3.