Atari.Org
Click Here
HomeNewsServicesForumsSupport

Talk Atari

Atari.Org Forums


16/32-Bit

8-Bits

Classics

Emulation

Jaguar

Lynx

Classic Consoles Forum 8-Bits Forum 16/32 Forum
Emulation Forum Jaguar Forum Lynx Forum
 
 Subject: RE: 1st Basic picture problems
Author: Elliot (193.113.240.46)
Date:   05-21-2000 22:19

From my memory you should be able to find the palatte at the end of the icture (should be 32 bytes), this need to be loaded into the colour registers. I do not know 1st basic but somthing like this.

For x = 0 to 15 (16 words)
doke deek(picaddr+32000+x),$ffff8240+x
Next x

Now the picaddr is the addres of the picture, the 32000 is a pointer past the picture data, and the X is each colour (16). The $ffff8240 is the start of the colour registers in memory and the X should point to each in turn.

$ffff8240 is from memory and the last time I put something there ($ffff8240) or any high memory address with about 7 years so check that if the machine is crashing.

The doke is a Double Poke and Deek double Peek.

Poke puts a number into and address
Peek gets a nuber from an address

The syntex may be different on 1st, if Doke and Deek to not exist then use Poke and Peek and 32 bytes of info (i.e. x = 0 to 31).

Elliot...

 Topics Author  Date
  1st Basic picture problems new cl 05-19-2000 23:51 
   RE: 1st Basic picture problems  Elliot 05-21-2000 22:19 

 Reply To This Message
 Your Name:
 Your Email:
 Subject:
 Human verification:   What's this?
               _    __     _ _     
 _ __  ___ _ _| |_ / _|___| (_)___ 
| '_ \/ _ \ '_|  _|  _/ _ \ | / _ \
| .__/\___/_|  \__|_| \___/_|_\___/
|_|                                
    



Copyright © 1997-2024 Atari.Org 
Atari is registered trademark of Infogrames