Giter Club home page Giter Club logo

Comments (5)

cpcitor avatar cpcitor commented on August 25, 2024 1

I love the idea because it allows somehow more "readable"/"maintainable" code in theory.
In practice because opcode can be more than one byte, I understand that it causes complexity and promise of maintainability of the assembler program itself weighs against. ¯\_(ツ)_/¯

What I would do as a user is have an independently generated, ready-to-use table of name-for-Z80-opcodes-that-fit-on-one-byte and use those names.

from rasm.

EdouardBERGE avatar EdouardBERGE commented on August 25, 2024 1

thanks for the opcode file, i puted it in a "resources" folder

from rasm.

EdouardBERGE avatar EdouardBERGE commented on August 25, 2024

i think it's too messy in order to be friendly and convenient to use, mostly because opcode may have "any" size

from rasm.

EdouardBERGE avatar EdouardBERGE commented on August 25, 2024

anyone can propose some kind of "best includes for you" like "amstrad_firmware_calls.inc" or "opcodes_bytes.inc"

from rasm.

cpcitor avatar cpcitor commented on August 25, 2024

anyone can propose some kind of "best includes for you" like "amstrad_firmware_calls.inc" or "opcodes_bytes.inc"

Well, "anyone" can be me.

@rgiot, you will find on https://github.com/cpcitor/cpc-dev-tool-chain/blob/master/cpclib/cdtc/asminclude/cdtc/z80_syms_for_opcodes_first_byte.s a generated table.

It uses the sdasz80 syntax (because it is part of cpc-dev-tool-chain which existed before rasm), but it is very easy to change all .equ to EQU or whatever you want.

As you will see, it somehow does more than you expected, as it additionally provides names that ensure opcode meaning and visible hex value are always in sync.

"amstrad_firmware_calls.inc"

I might make something similar one day.

As a side effect of making a C-level wrapper to the firmware routines, some are in https://github.com/cpcitor/cpc-dev-tool-chain/blob/master/cpclib/cfwi/src/fw_nowrapperneeded.s

from rasm.

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.