[Coco] Assembly question

Gene Heskett gheskett at wdtv.com
Mon Nov 5 06:53:27 EST 2012


On Monday 05 November 2012 06:51:09 Bill Pierce did opine:

> I found examples of code to get the current palettes from a window using
> getstt, can the same code be used in reverse to set the palettes?
> Example:
> 
> 
> GetPal:
>       lda    #STDIN
>       ldb    #SS_PALET
>       leax    RWPAL,U  (the 16 byte palette buffer)
>       os9    I$GetStt
>       lbcs    ErrOut
>       rts
> 
> 
> that code, I know works.
> can it be reversed to this:
> 
> 
> SetPal:
>       lda    #STDIN
>       ldb    #SS_PALET
>       leax    RWPAL,U  (the 16 byte palette buffer)
>       os9    I$SetStt
>       lbcs    ErrOut
>   rts
> 
> Any thought? Corrections?
 
Looks to me like it should work Bill. Many of the GetStt and SetStt calls 
mirror each other, some are even combined.

> thnx
> Bill P
> 
> 
> Music from the Tandy/Radio Shack Color Computer 2 & 3
> https://sites.google.com/site/dabarnstudio/
> Bill Pierce
> ooogalapasooo at aol.com
> 
> 
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco


Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
Reichel's Law:
	A body on vacation tends to remain on vacation unless acted upon by
	an outside force.



More information about the Coco mailing list