[Coco] Assembly question

Bill Pierce ooogalapasooo at aol.com
Mon Nov 5 01:24:52 EST 2012


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?

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




More information about the Coco mailing list