Re: [GAS bug] .asciz inserts zero byte for each string passed

2024-05-30 Thread Jiří Wolker
On 30. 05. 24 Andreas Schwab wrote: On Mai 30 2024, Jiří Wolker wrote: As you can see at the byte 0x45, the NUL byte is placed after the first string ("hello" ends). Which works as documented (`arguments not separated by commas'). See also the comment: `Treat "a" "b" as "ab". Even if we are

Re: [GAS bug] .asciz inserts zero byte for each string passed

2024-05-30 Thread Andreas Schwab
On Mai 30 2024, Jiří Wolker wrote: > As you can see at the byte 0x45, the NUL byte is placed after the first > string ("hello" ends). Which works as documented (`arguments not separated by commas'). See also the comment: `Treat "a" "b" as "ab". Even if we are appending zeros.' -- Andreas Schw

[GAS bug] .asciz inserts zero byte for each string passed

2024-05-30 Thread Jiří Wolker
Hello again! I've just spent half an hour by debugging my code thanks to this bug. :) Let's look at the docs: 7.6 ‘.asciz "STRING"’... ‘.asciz’ is just like ‘.ascii’, but each string is followed by a zero byte. The “z” in ‘.asciz’ stands for “zero”. Note that multip