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
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: 17352
Location: In your JS exploiting you and your system
revolution
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: 490
Location: Belarus
zhak
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: 1412
Location: Toronto, Canada
AsmGuru62
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
@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: 1901
DOS386
> 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.