Skip to content

Commit

Permalink
gas64 fix when emitting asm code for inline asm x[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
SARG-FB authored and jayrm committed Mar 26, 2023
1 parent e43074e commit f0fc2f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/ir-gas64.bas
Expand Up @@ -6462,8 +6462,7 @@ private sub _emitasmline( byval asmtokenhead as ASTASMTOK ptr )

Var ofs = symbGetOfs( n->sym )
if( ofs <> 0 ) then
asmline=left(asmline,len(asmline)-1) ''to remove the first bracket
asmline+= str( ofs )+"[rbp" ''the final bracket is added just after
asmline+= str( ofs )+"[rbp]"
else
asmline+= *symbGetMangledName( n->sym )'*symbGetMangledName( n->sym )
end if
Expand Down

0 comments on commit f0fc2f0

Please sign in to comment.