flat assembler
Message board for the users of flat assembler.

Index > DOS > Simple pattern for 13h DOS

Author
Thread Post new topic Reply to topic
me239



Joined: 06 Jan 2011
Posts: 200
me239
Hey guys, I'm back. Can anyone tell me where I can find some really simple pixel patterns to display in 256 color DOS?
Post 12 May 2011, 03:41
View user's profile Send private message Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
x xor y
Post 12 May 2011, 09:26
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
I was curious:
Code:
org $100

mov ax, 13h
int $10
mov ax, $A000
mov es, ax

xor bx, bx
mov cx, 320*200
xor dx, dx
xor di, di

@@:
mov al, bl
xor al, dl
stos byte [es:di]
inc bx
cmp bx, 320
sbb ax, ax
and bx, ax
not ax
sub dx, ax
loop @b

xor ax, ax
int $16

mov ax, 3
int $10

int $20    
Image
(It looked prettier when run in full screen mode outside DosBox in my WinXP 32-bit)
Post 12 May 2011, 18:04
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 GitHub, YouTube, Twitter.

Website powered by rwasa.