flat assembler
Message board for the users of flat assembler.

Index > DOS > Drawing in FASM.

Author
Thread Post new topic Reply to topic
mmajewski



Joined: 15 Apr 2014
Posts: 10
mmajewski 07 May 2014, 09:55
I am obliged to write program in Assembly that will draw chart of a function given by user (type of function is : ax^2+bx+c). I chose FASM because I believe I know the basics (still I am the rookie). I searched in Google and I did not manage to find some useful resources or tutorial that show how to draw things in graphic mode in FASM. If you know some tutorials, examples or any kind of resources that will help me, please provide me with links.
Post 07 May 2014, 09:55
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20513
Location: In your JS exploiting you and your system
revolution 07 May 2014, 10:03
Erm, fasm is not a general purpose application. It is only an assembler so you have to write some assembly source code that can use the drawing functions of the OS, and then assemble it with fasm.

Since you posted in the DOS section then I'd suggest what you should be looking for is tutorials on how to do graphics drawing in DOS (and hopefully tutorials using assembly code, but this not necessary since you can port it).
Post 07 May 2014, 10:03
View user's profile Send private message Visit poster's website Reply with quote
zhak



Joined: 12 Apr 2005
Posts: 501
Location: Belarus
zhak 07 May 2014, 10:05
I guess you could start with something simple like googling for 'vga programming assembler' and reviewing, for example, this tutorial: http://www.wagemakers.be/english/doc/vga and then moving forward.
Post 07 May 2014, 10:05
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1692
Location: Toronto, Canada
AsmGuru62 07 May 2014, 14:36
Or just use INT 10H - you need a few points for a curve, so no need for speed (I hope).
Post 07 May 2014, 14:36
View user's profile Send private message Send e-mail Reply with quote
mmajewski



Joined: 15 Apr 2014
Posts: 10
mmajewski 09 May 2014, 17:37
@AsmGuru62 @zhak @revolution Thank you for your suggestions!
Post 09 May 2014, 17:37
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1905
DOS386 22 May 2014, 08:34
> I am obliged to write program in Assembly that will draw
> chart of a function given by user (type of function is : ax^2+bx+c).

Did you get it (15 days later) ?
Post 22 May 2014, 08:34
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.