Qbasicnews.com
December 10, 2019, 08:57:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Yet Another CHALLENGE!!!  (Read 4632 times)
seph
Na_th_an
*****
Posts: 1915



« on: May 23, 2003, 08:57:00 PM »

Hmmm, maybe it's not as good as the title suggests Wink

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!
Logged

earn.
seph
Na_th_an
*****
Posts: 1915



« Reply #1 on: May 23, 2003, 09:11:33 PM »

Why'd you take it down Dav? It was good (except for the lack of reloading-the-screen code Wink)
Logged

earn.
Dav
Administrator
Ancient Guru
*****
Posts: 709



WWW
« Reply #2 on: May 23, 2003, 09:14:17 PM »

: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)
Logged

seph
Na_th_an
*****
Posts: 1915



« Reply #3 on: May 23, 2003, 09:59:32 PM »

Yeah I keep a sharp eye on my topics (when I'm not busy) Smiley
Logged

earn.
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #4 on: May 23, 2003, 10:12:02 PM »

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....)

 Tongue
Logged
seph
Na_th_an
*****
Posts: 1915



« Reply #5 on: May 23, 2003, 10:14:17 PM »

Damn you, got me on a technicality... Okay, FILES! Wink
Logged

earn.
toonski84
__/--\__
*****
Posts: 2567



« Reply #6 on: May 23, 2003, 10:15:16 PM »

then dav's solution is the one.  to load it:

Code:
def seg = &HA000
bload "file.bsv", 0
Logged

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
seph
Na_th_an
*****
Posts: 1915



« Reply #7 on: May 23, 2003, 10:23:21 PM »

Hmmm, perhaps I should look into my contests before I start them LOL
Logged

earn.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!