flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Windows > [solved] Fasm 1.69.03 Crush on read data !!!

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 340
[solved] Fasm 1.69.03 Crush on read data !!!
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: 340
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.