flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [BUG] WIN64\MANDEL Example

Author
Thread Post new topic Reply to topic
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
At least executing the distributed executable or recompiling and executing the program crash in Windows7 64-bit. However, I believe the error should occur in any Windows 64-bit version actually.

The patch:
Code:
; [REMOVED]       sub     rdi,640*2
; [REMOVED]       add     rdi,r10
        inc     ebx
        cmp     ebx,640
        jb      row

 ; [ADDED] (the is no strict requirement of using lea instead of the old instruction pair, of course)
        lea     rdi, [rdi + r10 - 640*2]    
Post 15 Aug 2009, 18:49
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7709
Location: Kraków, Poland
Tomasz Grysztar
LocoDelAssembly wrote:
However, I believe the error should occur in any Windows 64-bit version actually.
Unfortunately, it did not occur on my XP (perhaps my video pitch was equal to 120 and the bug was hidden this way - so it is more matter of graphics adapter than version of Windows). Thanks for the report.
Post 15 Aug 2009, 20:31
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.