flat assembler
Message board for the users of flat assembler.

Index > Windows > Simple Calculator

Author
Thread Post new topic Reply to topic
Force



Joined: 12 Jun 2012
Posts: 29
Force
This is my first Fasm program


Description:
Download
Filename: Math.rar
Filesize: 13.63 KB
Downloaded: 368 Time(s)

Post 11 Oct 2012, 23:21
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
Interesting project. It shows aspiration for perfection. Wink
IMHO, the user interface needs to be improved in order to ease the work with the program. Just try to work some time with it and it will show what have to be changed.
Post 13 Oct 2012, 15:41
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
Please use standard zip files next time.
Post 14 Oct 2012, 14:59
View user's profile Send private message Reply with quote
nmake



Joined: 13 Sep 2012
Posts: 193
nmake
Here is my first fasm program


Description:
Download
Filename: Fire.zip
Filesize: 2.27 KB
Downloaded: 258 Time(s)

Post 14 Oct 2012, 20:03
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
nmake, sorry but your program fails on my WinXP with following error message:
"The instruction at $40345b referenced memory at $95f000. The memory could not be written."
Post 14 Oct 2012, 20:47
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
nmake



Joined: 13 Sep 2012
Posts: 193
nmake
The first address you are referring to is a dib section. If you get an error there it would have failed to create a dib section on your system. If it fails to create one the function will return NULL and the pointer to that dib section would be null if it failed. The second memory address you provide (95f000) must have been added on top of the null address, and my program cannot have done that in the first place as it goes way beyond the boundaries of the screen.

The error message you are providing is faked. It is impossible to get a memory address of that kind with the instruction address you provided, just totally impossible. Smile

After years of reverse engineering you learn to see this instantly Wink

The program would have crashed at address 9620 (while trying to write below the minimum application address) and below the lowest system granularity.

But if it is not faked I would do a virus scan if I were you. Also switch operating system, XP is heavily outdated, it doesn't even support condition variables.
Post 15 Oct 2012, 01:05
View user's profile Send private message Reply with quote
nmake



Joined: 13 Sep 2012
Posts: 193
nmake
This is not my first fasm program, it is a different one, a simpler one. Usually the first thing you do in a d3d program is to draw the typical triangle with different rgb colors. Here is a GDI version of it. Very Happy


Description:
Download
Filename: Trianglergb.zip
Filesize: 1.45 KB
Downloaded: 103 Time(s)

Post 15 Oct 2012, 02:07
View user's profile Send private message Reply with quote
nmake



Joined: 13 Sep 2012
Posts: 193
nmake
Here is my second fasm program (or game) Very Happy


Description:
Download
Filename: Nibbles.zip
Filesize: 7.74 KB
Downloaded: 116 Time(s)

Post 15 Oct 2012, 02:12
View user's profile Send private message Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 730
tthsqe
Hey - a fellow calculator writer!
I like the opening effect in the interface - did you copy the window and blit parts of it?
Also, I would recommend a calculator posted a while back on the forum at http://board.flatassembler.net/topic.php?t=14015. It has some more powerful features.
Post 17 Oct 2012, 04:05
View user's profile Send private message Reply with quote
Force



Joined: 12 Jun 2012
Posts: 29
Force
hey tthsqe !!!

I saw ur calculator its good....

mine is simple because i m new in assembly Very Happy
Post 17 Oct 2012, 23:23
View user's profile Send private message Reply with quote
KevinN



Joined: 09 Oct 2012
Posts: 161
KevinN
These are cool examples. I vote to move it to examples board, but maybe its still good here
Post 07 Mar 2013, 06:41
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.