flat assembler
Message board for the users of flat assembler.

flat assembler > IDE Development > Using FASMG in Visual Studio Code:

Author
Thread Post new topic Reply to topic
bitRAKE



Joined: 21 Jul 2003
Posts: 2732
Location: dank orb
.\.vscode\tasks.json
Code:
{
    "version": "2.0.0",
    "inputs": [
        {
            "id": "DisplayErrors",
            "description": "Set maximum displayed errors",
            "default": "1",
            "type": "promptString",
        },
        {
            "id": "AllowedPasses",
            "description": "Set maximum number of passes",
            "default": "100",
            "type": "promptString"
        },
        {
            "id": "StackDepth",
            "description": "Set maxumum stack depth",
            "default": "10000",
            "type": "promptString"
        },
        {
            "id": "ShowAllLines",
            "description": "Boolean flag to show all stack lines",
            "default": "0",
            "type": "pickString",
            "options": [
                "0",
                "1"
            ]
        },
        {
            "id": "InsertCode",
            "description": "Code to insert at start of source",
            "default": "; nothing",
            "type": "promptString"
        }
    ],
    "tasks": [
       {
            "label": "Advanced build with fasmg",
            "type": "shell",
            "command": "fasmg",
            "windows": {
                "command": "fasmg.exe"
            },
            "args": [
                "${fileBasename}",
                "-e", "${input:DisplayErrors}",
                "-p", "${input:AllowedPasses}",
                "-r", "${input:StackDepth}",
                "-v", "${input:ShowAllLines}",
                "-i", "${input:InsertCode}"
            ],
            "options": {
                "env": {
                    "PATH": "D:\\GIT\\fasmg\\core",
                    "INCLUDE": "D:\\GIT\\fasmg\\packages\\x86\\include"
                }
            }
       }
    ]
}    
To use the above build task just configure a task for your workspace, and correct the directories to match your installation. In Windows this task works with either the Powershell or CMD shell. No testing has been performed in Linux.

VS Code has some very extensive language integration features, but I'd like to just supporting the base language first. I'll try to add features as I work on them.

_________________
unlicense.org
Post 28 Feb 2019, 05:01
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.