Coder Social home page Coder Social logo

Comments (3)

sbprojects avatar sbprojects commented on August 26, 2024

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.

SD45T-2 avatar SD45T-2 commented on August 26, 2024

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.

sbprojects avatar sbprojects commented on August 26, 2024

from sbasm3.

Related Issues (12)

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.