flat assembler
Message board for the users of flat assembler.
Index
> DOS > Basic graphical output in fasm -help needed- |
Author |
|
Dex4u 24 Oct 2006, 22:00
One ? why do you want to use mode 12h ?, this mode is a lot of work, you would be better off using mode 13h or vesa modes.
|
|||
24 Oct 2006, 22:00 |
|
vid 24 Oct 2006, 22:36
or learn VGA programming
|
|||
24 Oct 2006, 22:36 |
|
sylwek32 24 Oct 2006, 23:26
and can you tell me how to do this in mode 13h or a vesa mode?
|
|||
24 Oct 2006, 23:26 |
|
rhyno_dagreat 25 Oct 2006, 00:26
Here's what I can provide:
Code: org 100h mov ah, 00 ;Function for changing graphics modes mov al, 13h ;screen 13 int 10h ;use int 10h with that function mov bx, 0A000h ;move video memory location mov es, bx ;into extra segment mov bx, 0 ; make offset 0 mov al, 1 mov cx,64000 startloop: mov [es:bx], al ;move al, which is the color the pixel is, into place in vidmem inc bx ; increment place in video memory loop startloop mov bx, 0 add bx, 36000 mov al, 3 ;mov dx, 64000 mov cx, 28000 taskbarloop: mov [es:bx], al inc bx loop taskbarloop done: ret mov ax, 0100h int 21h int 20h Hope it helps! |
|||
25 Oct 2006, 00:26 |
|
Dex4u 25 Oct 2006, 00:44
Or you do it like this
Code: ;31 byte fasm starfield org 100h use16 start: mov al,13h ;mode 13h int 10h mov bx,0xa000 hidden_ret: mov es,bx genstar: in al,40h aaa scroll: sbb di,ax stosb loop genstar mov ah,1 int 16h jnz hidden_ret + 1 xor ax,ax xchg al,[es:di] inc cx jmp scroll |
|||
25 Oct 2006, 00:44 |
|
sylwek32 25 Oct 2006, 00:59
thanks..
i programmed a 32 byte tv-simulator.. (noize) |
|||
25 Oct 2006, 00:59 |
|
JapanLover 25 Oct 2006, 01:13
here is a 20byte star field i found on some website thinger...
Code: org 256 start: mov al,13h int 10h pop sp pop cx pop ds lp1: pop ax aaa lp2: xchg [di],al add di,ax loop lp1 inc di cbw inc cx jmp lp2 a little busy looking, but still a starfield... (Dex, your's is prettier =) ) |
|||
25 Oct 2006, 01:13 |
|
sylwek32 25 Oct 2006, 01:21
try changing mov al,13h to mov al,12h
|
|||
25 Oct 2006, 01:21 |
|
JapanLover 25 Oct 2006, 02:39
sylwek32 wrote: try changing mov al,13h to mov al,12h ah, much more star like, heh... i like =) edit: got that originally from http://www.df.lth.se/~john_e/fr_gems.html they have a lot of nice stuff that i haven't even looked at... enjoy =) |
|||
25 Oct 2006, 02:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.