#298 new
Peter Cordes

Docs: wrong hex values for ASCII chars in db/dw example (3.2.1)

Reported by Peter Cordes | February 27th, 2016 @ 11:25 PM

http://www.tortall.net/projects/yasm/manual/html/nasm-pseudop.html

3.2.1. DB and Friends: Declaring Initialized Data

   ...                                                                                                                                                                 
    dw      'a'                 ; 0x41 0x00 (it's just a number)                                                                                                       
    dw      'ab'                ; 0x41 0x42 (character constant)                                                                                                       
    dw      'abc'               ; 0x41 0x42 0x43 0x00 (string)                                                                                                         
   ...

Those hex values are correct for 'ABC', not 'abc'.

First noticed by Leo Mingo on stackoverflow (who unfortunately posted
his comment as a now-deleted answer
http://stackoverflow.com/a/35623263/224132).

Also, I tried to report this with mail to yasm-doc@tortall.net, but it bounced.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages