flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > How to use images? revised.. Goto page Previous 1, 2 |
Author |
|
Dex4u 17 Jun 2006, 13:00
I am also a great believer in KISS, here is some code, i made to display a 640x480 256 bmp for "Redragon", may help others.
Note: Change "test.bmp" before assembling, to change image. Run the exe to put it on a floppy, fasm code included. http://www.dex4u.com/Redragon/BmpView.zip EDIT: Please just ask and i will upload it again (as need space). Hope this helps. Works in qemu too. Last edited by Dex4u on 19 Jun 2006, 15:11; edited 2 times in total |
|||
17 Jun 2006, 13:00 |
|
Adam Kachwalla 19 Jun 2006, 20:56
What are the values of [di] and [Col]?
|
|||
19 Jun 2006, 20:56 |
|
Adam Kachwalla 19 Jun 2006, 21:22
Dex4u: It appears that your BMP viewer doesn't work too well.
|
|||
19 Jun 2006, 21:22 |
|
Dex4u 19 Jun 2006, 21:47
Adam Kachwalla wrote: Dex4u: It appears that your BMP viewer doesn't work too well. It may help if you say in what way |
|||
19 Jun 2006, 21:47 |
|
ATV 20 Jun 2006, 13:00
That is about 10 years old pascal source, that time I didnt use many comment in my source.
col=color=0..15 x=0..639 y=0..479 di=(x shr 3)+80*y cl=x and 7 Note: it is using writemode 2 You can also use writemode 0 but then you have to set right color plane your self. For more information search WriteEgaPlane in net. |
|||
20 Jun 2006, 13:00 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.