printpalette.lua 402 B

123456789101112131415161718192021222324
  1. -- title: print palette
  2. -- author: pixelbath
  3. -- desc: prints the current palette
  4. -- script: lua
  5. t=0
  6. x=96
  7. y=24
  8. cls()
  9. function TIC()
  10. pal_addr=0x3fc0
  11. for i=0,15 do
  12. offset = i * 3
  13. hex = string.format(
  14. "%x%x%x"
  15. , peek(pal_addr+offset)
  16. , peek(pal_addr+offset+1)
  17. , peek(pal_addr+offset+2)
  18. )
  19. print(hex, 0, i*8, 12, 1, 1, 1)
  20. end
  21. end