Posts: 1,813
Threads: 284
Joined: Mar 2003
Hmmm, maybe it's not as good as the title suggests
Anyways try this guys:
Who can write the
quickest,
easiest,
fastest routine to save a 320x200 screen?
Requirements:
Qbasic 4.5 and ASM ONLY!
I guess that's it, LOL!
earn.
Posts: 1,813
Threads: 284
Joined: Mar 2003
Why'd you take it down Dav? It was good (except for the lack of reloading-the-screen code
)
earn.
Posts: 440
Threads: 65
Joined: Sep 2001
:oops: I was redoing it a little. Aww heck, here it is again...
The easiest, smallest way I can think of:
Code:
DEF SEG = &HA000
BSAVE "320x200.BSV", 0, 64000
- Dav
(you're quick Seph. I only had it up for a few secs)
Posts: 1,813
Threads: 284
Joined: Mar 2003
Yeah I keep a sharp eye on my topics (when I'm not busy)
earn.
Posts: 1,752
Threads: 21
Joined: Jun 2002
Code:
SCREEN 7,,0,0
SUB SaveScreen
PCOPY 0,1
END SUB
SUB LoadScreen
PCOPY 1,0
END SUB
What do ya know...screen 7 is 320x200, and the code saves it to memory (Hey, you never said it had to be saved to a file....)
Posts: 1,813
Threads: 284
Joined: Mar 2003
Damn you, got me on a technicality... Okay, FILES!
earn.
Posts: 2,020
Threads: 24
Joined: Jun 2002
then dav's solution is the one. to load it:
Code:
def seg = &HA000
bload "file.bsv", 0
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Posts: 1,813
Threads: 284
Joined: Mar 2003
Hmmm, perhaps I should look into my contests before I start them LOL
earn.