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 11 Oct 2012, 23:21
This is my first Fasm program


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

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



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 13 Oct 2012, 15:41
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: 2909
Location: 0x77760000
typedef 14 Oct 2012, 14:59
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: 192
nmake 14 Oct 2012, 20:03
Here is my first fasm program


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

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



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 14 Oct 2012, 20:47
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: 192
nmake 15 Oct 2012, 01:05
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: 192
nmake 15 Oct 2012, 02:07
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: 335 Time(s)

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



Joined: 13 Sep 2012
Posts: 192
nmake 15 Oct 2012, 02:12
Here is my second fasm program (or game) Very Happy


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

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



Joined: 20 May 2009
Posts: 767
tthsqe 17 Oct 2012, 04:05
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 17 Oct 2012, 23:23
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: 160
KevinN 07 Mar 2013, 06:41
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.