flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > AOXXX

Goto page Previous  1, 2, 3, 4, 5
Author
Thread Post new topic Reply to topic
avcaballero



Joined: 02 Feb 2004
Posts: 229
Location: Madrid - Spain
avcaballero 22 Jul 2025, 08:11
Thank you Very Happy

_________________
Siempre aprendiendo
Post 22 Jul 2025, 08:11
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 229
Location: Madrid - Spain
avcaballero 23 Jul 2025, 19:54
In the case anyone is interested, I have found an interesting page on PQ-Torus Knot and has some initiating steps on it that I have been followed making some programs to see what they do. The attached zip contains both the source and compiled code.

- TorusKnotWC01.c. The first step drawing a circle.
- TorusKnotWC01b.c. The same seen in 3D.
- TorusKnotWC02.c. Now let's mix it up a bit by oscillating along y.
- TorusKnotWC03.c. Change it to also oscillate radially...
- TorusKnotWC04.c. Now make it loop around three times. At this point we have just made a (3,8 )-torus knot.

Regards.


Description:
Download
Filename: TorusKnot.zip
Filesize: 189.42 KB
Downloaded: 234 Time(s)


_________________
Siempre aprendiendo
Post 23 Jul 2025, 19:54
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 229
Location: Madrid - Spain
avcaballero 04 Jan 2026, 20:07
Hello, a tiny hangman game example with full fasm 64 bits source code.


Description:
Download
Filename: HangW64F01.7z
Filesize: 5.77 KB
Downloaded: 72 Time(s)


_________________
Siempre aprendiendo
Post 04 Jan 2026, 20:07
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1458
Location: Piraeus, Greece
Picnic 04 Jan 2026, 21:21
Very nice, avcaballero!

Screenshot from Windows 11.

Image

When I deliberately tried to crash the app by smashing random keys… I think I actually managed it!
Post 04 Jan 2026, 21:21
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 229
Location: Madrid - Spain
avcaballero 04 Jan 2026, 22:36
Very Happy

Thank you for testing it, Picnic

_________________
Siempre aprendiendo
Post 04 Jan 2026, 22:36
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4365
Location: Now
edfed 05 Jan 2026, 01:11
good Smile
Post 05 Jan 2026, 01:11
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 229
Location: Madrid - Spain
avcaballero 05 Jan 2026, 08:01
Thank you Smile
Post 05 Jan 2026, 08:01
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 229
Location: Madrid - Spain
avcaballero 08 Apr 2026, 11:21
Hello an old tunnel demo in Linux. Source code included. Compile with "gcc X11_Tunnel.c -o X11_Tunnel -lX11 -lm"..

Edit: I have added the possibility of exiting by clicking on the ESC key, as it should be.


Description:
Download
Filename: X11_Tunnel.c
Filesize: 4.51 KB
Downloaded: 17 Time(s)


_________________
Siempre aprendiendo
Post 08 Apr 2026, 11:21
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 229
Location: Madrid - Spain
avcaballero 10 Apr 2026, 23:56
Hello. Here it is an example on Linux X11+nasm width libc for a floor demo. When I have time I will make the fasm version too.

It would be nice if someone had the time to prove both codes I have attached. The difference between them is that one waits for XPending and the other don't. What I'm trying to determine is whether this wait makes the code run more smoothly, without stuttering, or not. Something like the vertical retrace wait. At first glance, I'd say they're the same. Perhaps more trained eyes than mine could see a difference. If no difference were noticeable, I wouldn't see the need for that wait.

Thank you.


Description:
Filesize: 9.72 KB
Viewed: 218 Time(s)

Floor_X11LCN01.png


Description:
Download
Filename: Floor_X11LCN.7z
Filesize: 2.02 KB
Downloaded: 9 Time(s)


_________________
Siempre aprendiendo


Last edited by avcaballero on 11 Apr 2026, 11:10; edited 1 time in total
Post 10 Apr 2026, 23:56
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 229
Location: Madrid - Spain
avcaballero 11 Apr 2026, 11:04
Hello. Here it is the fasm version.


Description:
Download
Filename: Floor_X11LCF01.asm
Filesize: 5.32 KB
Downloaded: 13 Time(s)


_________________
Siempre aprendiendo
Post 11 Apr 2026, 11:04
View user's profile Send private message Visit poster's website Reply with quote
macgub



Joined: 11 Jan 2006
Posts: 365
Location: Poland
macgub 12 Apr 2026, 14:11
Hi!
I compile with:
Code:
fasm Floor_X11LCF01.asm Floor_X11LCF01.o    

and get: Floor_X11LCF01.o file. Next I type:
Code:
gcc -no-pie Floor_X11LCF01.o -o Floor_X11LCF01 -lX11    

and get: /usr/bin/ld: cannot find -lX11: No such file or directory
collect2: error: ld returned 1 exit status
What should I do to correctly get executable file?
Post 12 Apr 2026, 14:11
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 229
Location: Madrid - Spain
avcaballero 12 Apr 2026, 14:42
macgub wrote:

and get: /usr/bin/ld: cannot find -lX11: No such file or directory
What should I do to correctly get executable file?


That's because you don't have the X11 libraries. You have to install them. For do so, you have first to update your system (Debian/Ubuntu)

Code:
sudo apt update
sudo apt install libx11-dev    

_________________
Siempre aprendiendo
Post 12 Apr 2026, 14:42
View user's profile Send private message Visit poster's website Reply with quote
macgub



Joined: 11 Jan 2006
Posts: 365
Location: Poland
macgub 12 Apr 2026, 15:47
Nice! Thanks a lot!!
Post 12 Apr 2026, 15:47
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 229
Location: Madrid - Spain
avcaballero 12 Apr 2026, 16:12
You're welcome

_________________
Siempre aprendiendo
Post 12 Apr 2026, 16:12
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4365
Location: Now
edfed 13 Apr 2026, 20:40
good, i have then the same basis to start fool in linux. i used the floor demo for gdi to start the win version of fool. Smile it's always very usefull to have the minimal example of something like this.
Post 13 Apr 2026, 20:40
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:  
Goto page Previous  1, 2, 3, 4, 5

< 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-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.