COLOR.C 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Contains default ASCII table with default palette table.
  3. * Assembly is used as workaround to store them.
  4. * Because of the default stack code at the start of each code,
  5. * an offset is required to access the data
  6. */
  7. void DATA_PALETTE_COLOR(){
  8. asm(
  9. ".dw 0b00000000000000001111111111111111 ; green, black, white, white\n"
  10. ".dw 0b00000000001000000100000001100000\n"
  11. ".dw 0b10000000101000001100000011100000\n"
  12. ".dw 0b00000000000001000000100000001100\n"
  13. ".dw 0b00010000000101000001100000011100\n"
  14. ".dw 0b00000000000000010000001000000011\n"
  15. ".dw 0b00000000000000000000000000000000\n"
  16. ".dw 0b00000000000000000000000000000000\n"
  17. ".dw 0b00000000000000000000000000000000\n"
  18. ".dw 0b00000000000000000000000000000000\n"
  19. ".dw 0b00000000000000000000000000000000\n"
  20. ".dw 0b00000000000000000000000000000000\n"
  21. ".dw 0b00000000000000000000000000000000\n"
  22. ".dw 0b00000000000000000000000000000000\n"
  23. ".dw 0b00000000000000000000000000000000\n"
  24. ".dw 0b00000000000000000000000000000000\n"
  25. ".dw 0b00000000000000000000000000000000\n"
  26. ".dw 0b00000000000000000000000000000000\n"
  27. ".dw 0b00000000000000000000000000000000\n"
  28. ".dw 0b00000000000000000000000000000000\n"
  29. ".dw 0b00000000000000000000000000000000\n"
  30. ".dw 0b00000000000000000000000000000000\n"
  31. ".dw 0b00000000000000000000000000000000\n"
  32. ".dw 0b00000000000000000000000000000000\n"
  33. ".dw 0b00000000000000000000000000000000\n"
  34. ".dw 0b00000000000000000000000000000000\n"
  35. ".dw 0b00000000000000000000000000000000\n"
  36. ".dw 0b00000000000000000000000000000000\n"
  37. ".dw 0b00000000000000000000000000000000\n"
  38. ".dw 0b00000000000000000000000000000000\n"
  39. ".dw 0b00000000000000000000000000000000\n"
  40. ".dw 0b00000000000000000000000000000000\n"
  41. );
  42. }
  43. void DATA_PATTERN_COLOR(){
  44. asm(
  45. ".dw 0b00000000000000000000000000000000\n"
  46. ".dw 0b00000000000000000000000000000000\n"
  47. ".dw 0b00000000000000000000000000000000\n"
  48. ".dw 0b00000000000000000000000000000000\n"
  49. ".dw 0b01010101010101010101010101010101\n"
  50. ".dw 0b01010101010101010101010101010101\n"
  51. ".dw 0b01010101010101010101010101010101\n"
  52. ".dw 0b01010101010101010101010101010101\n"
  53. ".dw 0b10101010101010101010101010101010\n"
  54. ".dw 0b10101010101010101010101010101010\n"
  55. ".dw 0b10101010101010101010101010101010\n"
  56. ".dw 0b10101010101010101010101010101010\n"
  57. ".dw 0b11111111111111111111111111111111\n"
  58. ".dw 0b11111111111111111111111111111111\n"
  59. ".dw 0b11111111111111111111111111111111\n"
  60. ".dw 0b11111111111111111111111111111111\n"
  61. );
  62. }