Coder Social home page Coder Social logo

dasm-vscode's People

Contributors

dependabot[bot] avatar settis avatar

Stargazers

 avatar

Watchers

 avatar

dasm-vscode's Issues

Relocatable origins not supported

DASM has an upcode RORG for relocatable origins and REND for end of this relocatable origin.
These upcodes are not included in this extension

Ignore dynamic labels

This code must not produce an error

    processor 6502
    org $200

FOO SET 1

    MACRO SOME_JMP
    JMP SOME_,FOO
    ENDM

    MACRO SOME_LABEL
SOME_,FOO
    ENDM

    SOME_JMP
    SOME_LABEL

Include doesnt work in parallel files

I have a structure like this:

entry.asm
constants.asm
code.asm

entry.asm:

include constants.asm
include code.asm

constants.asm:

SOME_CONST EQU $0001

code.asm:

LDA SOME_CONST ; doesn't know SOME_CONST (label is not defined)

This would build by dasm, but would give errors by this extension

Process include directive inside macro properly

Let's say we have
./main.asm:

  INCDIR "lib"
  INCLUDE "macro.asm"

  FOO

./lib/macro.asm

  MAC FOO
  INCLUDE "inc.asm"
  ENDM

./lib/inc.asm

  NOP

While we resolving include inside macros we need to keep all incdir.

Labels support

Check label usage, unique.
Go to definition, references.
Subroutine support.

Nested macros are not resolved

This is a valid code, but it gives the "Label is not defined" error for FOO_CONST:

    processor 6502
    org $200
    MAC CREATE_CONST
    DEFINE_CONST {1}_CONST, {2}
    ENDM
    MAC DEFINE_CONST
{1} = {2}
    ENDM

    CREATE_CONST FOO, 50
    LDA #FOO_CONST

Correct dynamic variable processing

This snippet is correct and must not produce any errors:

; Use a dynamic label inside a macro
N SET 0 ; instance number

    MAC dynm ; {1}= base name
{1},"_",N ; define label using {1} and instance #
N SET N +1
    ENDM

    dynm fna
    jmp fna_0 ; OK
    dynm fna
    jmp fna_1 ; OK

I = 1
TMP SET fna_,I
    jmp TMP

Include not working

How do I use include with this plugin, as I am working on a project, where include is succesfully used, but this extension doesnt find the files. the project can be build correctly, however, all includes are ignored due to errors, causing many more errors to appear.
I dont know if this has something to do with how I use include, but seeing as dasm can build the project without a problem, I assume I am doing it correctly
Whether I use include file.asm or include "file.asm", it gives errors. both build fine
include file.asm gives the error: Redundant input, expecting EOF but found: .asm parser
include "file.asm" gives the error: The file is not resolvable
Where is it searching for the files to include, and why does it need to be a string

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.