Menu

#184 inline asm access to local function SLOCs

open
nobody
pdk (3)
5
2022-12-26
2022-12-26
No

I found ugly way to access to preallocated SLOCs from inline assembler.

void foo (char a) {
    static char bar;
....
__asm
    swap    _foo_bar_65536_31;
__endasm;
....
}

The problem is that they have some unpredictable numerical indexes at the end.
What is correct way to access local vars (preferable by name) from asm?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.