flat assembler
Message board for the users of flat assembler.

Index > DOS > Graphics Routines

Author
Thread Post new topic Reply to topic
Picnic



Joined: 05 May 2007
Posts: 1389
Location: Piraeus, Greece
Picnic 31 May 2007, 19:32
Hello all,
Is there a graphics library for fasm in dos? A basic set of routines, pixels, lines, boxes, circles perhaps. Does anyone made or using such a lib and wanted to share.
Post 31 May 2007, 19:32
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 31 May 2007, 22:28
Quote:
Is there a graphics library for fasm in dos? A basic set of routines, pixels, lines, boxes, circles perhaps


There is DUGL Smile ... but it is for DGJPP, not for FASM Sad . From my discussion with the author I found out, that a FASM version might be doable acceptably easy, but he would have to do since it is closed source. Remove file I/O ("LoadGIF" -> "DecodeGIF", since it relies on DGJPP's crappy I/O library), remove DPMI__INT (it is in the DGJPP library, rely on translation by HDPMI32 or DOS/32A instead), change memory model to zero-based ... adjust the code to be position-independent (preferred, otherwise some reloc/fixup stuff would be needed) and adjust the docs (now they use the silly "C" syntax full of silly stars and similar "pointer" junk Sad )

http://dugl.50webs.com/index.html

Screenshots:

Image

MORE

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug


Last edited by DOS386 on 02 May 2008, 04:27; edited 3 times in total
Post 31 May 2007, 22:28
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1389
Location: Piraeus, Greece
Picnic 02 Jun 2007, 09:30
Thanks for the info. I'll see what to do. I found some mode13 routines on Tasm syntax i'll try to convert to Fasm, for start.. Rolling Eyes
Post 02 Jun 2007, 09:30
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 02 Jun 2007, 19:56
@thimis, If you write or convert Dos graphic libs to fasm, it would be usefull to other's and will help you learn Smile.

PS: Theres a link to putpixel, cls etc in the Dos FAQ.
Post 02 Jun 2007, 19:56
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1389
Location: Piraeus, Greece
Picnic 03 Jun 2007, 11:37
I'll try to do that, thanks Dex4u Razz
Post 03 Jun 2007, 11:37
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:  


< 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.