CaptainJiNX / vscode-kickass-c64

Visual Studio Code extension for C64 coding with Kick Assembler
MIT License
18 stars 4 forks source link

Feature/support explicit c64 debugger start address #3

Open gitsoft opened 5 years ago

gitsoft commented 5 years ago

TLDR; New optional feature to use a specific C64Debugger jump address

When is this useful

  1. c64Debugger does not jump to the expected location when -autojmp is used.
  2. When you want to debug a specific part of your loaded assembly code.

Usage Provide a specific address value in the setting named C64 Debugger Start Address

Default behavior The vscode-kickass-c64 extension uses -autojmp when invoking C64Debugger. (no change)

New alternate behavior With a specific memory address in C64 Debugger Start Address this extension now invokes C64Debugger with -jmp <_address_>

Error handling Any provided start address is validated before use. Default behavior (-autojmp) is used if the provided address is considered invalid. To be considered valid the value must be prefixed with x and have a value within the commodore 64 memory range (0000-FFFF). reference: https://www.c64-wiki.com/wiki/Memory_Map

CaptainJiNX commented 5 years ago

I don't think that this should be a setting for the extension, since it is unique for each project/file. I'm planning to implement the same kind of build annotations as Swoffa did in the sublime plugin, so maybe it could be something that is implemented like this.

// @kickass-build "file-to-run": "StartupSegment.prg"
// @kickass-build "start-address": "$4000"