flat assembler
Message board for the users of flat assembler.

Index > Heap > how to, generate very big images with asm

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4240
Location: 2018
edfed
i have a little problem.
the problem is very simple, i want to generate big images with asm.

then, i will be able to create this kind of image with only code, and will be easier than by hand method.

i suppose opengl is one of the best ways to do that. but opengl uses 3D vectors and is really different of what i think about graphic programming, then, the ASM bridge will be enormous between me and opengl, just to have something easy to use..


Description:
Filesize: 39.59 KB
Viewed: 1083 Time(s)

clavier.png


Post 22 Sep 2010, 21:58
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17472
Location: In your JS exploiting you and your system
revolution
You can set "pixels" in memory and save as a BMP file. Then convert to whatever final format you want with external programs.
Post 23 Sep 2010, 01:10
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2940
Location: vpcmipstrm
bitRAKE
Write macros for POINT, LINE, BOX, etc...using STORE directive to set color at locations. Fonts will be more difficult, but it is possible. Easiest is to have the data in a file and store copy from virtual block to image.
Code:
macro FONT8x8 char* {
  virtual
    file myfont.img
    rept 8 i:0 \{
      load b\#i byte from $$ + char*8 + i
    \}
  end virtual
}    
...and then just store the data as needed. Once a few macros are created you can leverage them to do much greater things. The above image could be vectorized into script form to produce several output images based on the underlying macros chosen.

NOTE: myfont.img file could be direct copy from ROM BIOS, 1K at F000:FA6E.
Post 23 Sep 2010, 02:02
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 can 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.