Menu

#21 Fatal crash when space between comma and X/Y indexer

1.51.675
closed-fixed
nobody
5
2014-10-12
2014-09-10
No

This code compiles:
sta ($D0),y
This code causes a fatal crash, no error message, console window closes:
sta ($D0), y

Discussion

  • Soci/Singular

    Soci/Singular - 2014-09-10

    r584:
    a.asm:2:1: error: no fitting addressing mode for opcode

    r675:
    a.asm:2:12: error: not defined 'y'
    a.asm:2:12: note: searched in the global scope
    a.asm:2:1: error: no fitting addressing mode for opcode

    r716/727:
    a.asm:2:12: error: not defined 'y'
    sta ($D0), y
    ^
    a.asm:2:12: note: searched in the global scope
    a.asm:2:1: error: no fitting addressing mode for opcode
    sta ($D0), y
    ^

    r760:
    a.asm:2:1: error: no fitting addressing mode for opcode
    sta ($D0), y
    ^

    No crash at all. Probably you need to add more lines to your example. Was this with the precompiled win32 version? I only tried 675 from that and it was ok.

     
  • Róbert Kisnémeth

    You're right, a full example would be handy, I'm sorry this is my very first bugreport ever ;)
    In the attached zip there is a bug.tas and three batch files I used to test the last three public versions of 64tass.exe. I used the downloaded precompiled binaries from the Files section.
    r657: "error: no fitting addressing mode for opcode"
    r716: crash
    r727: crash

    I'm using Windows 8.1 x64.

     
  • Soci/Singular

    Soci/Singular - 2014-09-11

    Thanks! It's fixed now in r761. The context was important, otherwise nothing happened ;) The problem was not just for indexing, but for some other cases as well where multiple parameters were accepted.

    New binaries will be uploaded for the next release sometime soon, it's about time for that anyway.

    Btw. I saw you have some underscored local labels, which can't be reached above DrawCircleLoop. Either make this an underscored local label, or make the other labels non-local by removing the underscore.

     
  • Soci/Singular

    Soci/Singular - 2014-09-11
    • status: open --> pending-fixed
     
  • Soci/Singular

    Soci/Singular - 2014-10-12
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB