text screen clear bit of code It's faster then the one in the OS and doesn't move the cursor (what I needed)
It's not much, just a piece of something else I'm working on, that might be usefull
;Fill text screen with colored blanks
; cx=1760 3 line title top and bottom, cx=2000 single 3 line title block, cx=2240 no title block)
FillScrn:
push cx
push eax
push edi
mov cx,1760 ; how many chr to write to clear screen
mov eax,0x40204020 ; char to fill screen with (40=color 20=blank)
mov edi,0xb7bc0 ; Where to start screen fill(0xb7bc0=with top title block 0xb79e0=no top title block)
@@:
stosd ; put 2 blanks on screen
loopw @b ; do again
pop edi
pop eax
pop cx
ret
tonyMac- 04-24-2008
Thank you roboman!
also, I like your signature. We have the SCoD. (Single Character of Doom) :lol:
Dex- 04-24-2008
Thanks roboman :).
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.