Spec says: > The $ can only appear as the target of a jmp or call instruction. But this doesn't compile: void main() { asm { call $; pop EAX; } } t38b.d(5): bad type/size of operands 'call'
What is dollar supposed to represent here ? the function we're in ?
https://www.google.com/search?q=what+does+dollar+mean+in+intel+assembler
I see, it's the Address of next instr
@WalterBright created dlang/dmd pull request #11624 "fix Issue 7387 - call instruction does not understand $" fixing this issue: - fix Issue 7387 - call instruction does not understand $ https://github.com/dlang/dmd/pull/11624
dlang/dmd pull request #11624 "fix Issue 7387 - call instruction does not understand $" was merged into master: - 1b78cbc1c6726261287e907d702d595f93c708cb by Walter Bright: fix Issue 7387 - call instruction does not understand $ https://github.com/dlang/dmd/pull/11624