Menu

#289 listing instructions code truncation

generic
open
japheth
None
5
2013-10-27
2013-10-11
ioan
No

while compiling asm file to plain binary for x64, i've noticed that generated list file contains truncated x86 code (for example, from mov r10, 64-bit const, last byte simply truncated:

0000001A 49BADA16CF12000000 mov r10, myconstant

instruction are 10-byte long, but only 9 bytes are shown in listing.

Discussion

  • dosfan01

    dosfan01 - 2013-10-12

    Note the longest possible x86 instruction without redundant prefixes is 15 bytes so even if this was changed to 10 via #define CODEBYTES in listing.c it would not solve the problem for all possible cases.

    Note this issue is basically a duplicate of item 2 in feature request #45 - http://sourceforge.net/p/jwasm/feature-requests/45/

     
  • japheth

    japheth - 2013-10-13
    • Group: v211 --> generic
     
  • japheth

    japheth - 2013-10-13

    I'm aware of this problem. There is currently no fix available.

     
  • dosfan01

    dosfan01 - 2013-10-27

    You can probably close this since it is a duplicate of feature request #45.

     

Log in to post a comment.