Skip to content

Mapping of (local) Variables doesn't match #130

Open
@KlausLoeffelmann

Description

@KlausLoeffelmann

The mapping to local Variable seems of by a few Bytes.
See screenshot for an example. In this screenshot, the method being called was passed a key code (Commodore F, which equals 187 or 0xee). As seen in the screenshot, the character code in pressedKey is actually stored in the C stack at $cffb while the debugger assumes it to be at $cff9.

image

Also, what I noticed is, that the debugger does not pick up local variables which have been defined in nested scopes. Could this be the also the reason for the offsets in the local variable address lookup?

Unfortunately, I don't have a small repo, at least not yet. I am trying to find more time for putting together a simple repro scenario.

This is VSCode, latest version:
image

This is Vice version 3.6.1, and I am using the internal version of CC65.
OS is Windows 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions