flat assembler
Message board for the users of flat assembler.

Index > Windows > [solved] Fasm 1.69.03 Crush on read data !!!

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1847
Roman 20 Dec 2016, 10:24
Today i write simple program. And when i read from memory i get crush my program !

Code:
format pe gui
entry start
 include 'c:\fasm\include\Win32a.inc'
 include 'c:\fasm\include\equates\kernel32.inc'
 include 'c:\fasm\include\equates\gdi32.inc'
 include 'c:\fasm\include\equates\user32.inc'
 include 'c:\fasm\include\equates\winmm.inc'  
PI                      EQU 3.141592654
WinX                    EQU 900            
WinY                    EQU 700             
DX11inWindow            =   TRUE            
VSync                   =   1
MSAA                    =   4
DropFile                =   0
winflag                 EQU WS_POPUP +WS_VISIBLE
SwapFlags               EQU DXGI_USAGE_RENDER_TARGET_OUTPUT
section '.code' data readable writeable executable
start:
                mov eax,[WinW] 
                mov eax,[WinY] ; in this place crush. If comment work fine ! 
section '.data' data readable writeable
                WinW            dd 0
                WinH            dd 0

    
Post 20 Dec 2016, 10:24
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1847
Roman 20 Dec 2016, 10:33
I found bug ! I read from EQU WinY !!!
Sorry Smile
Post 20 Dec 2016, 10:33
View user's profile Send private message 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.