cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

set_palette.s (478B)


      1        ;; SMS palette routines
      2
      3        .include        "global.s"
      4
      5        .title  "CRAM SMS Palettes"
      6        .module CRAMUtils
      7
      8        .globl  .CRT_DEFAULT_PALETTE, _set_palette
      9
     10        .area   _HOME
     11
     12_set_default_palette::
     13        ld hl, #.CRT_DEFAULT_PALETTE
     14        push hl
     15        ld hl, #0x0100
     16        push hl
     17        call _set_palette
     18        ld hl, #.CRT_DEFAULT_PALETTE
     19        push hl
     20        ld hl, #0x0101
     21        push hl
     22        call _set_palette
     23        ret