cscg22-gearboy

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

mode.s (311B)


      1        .include        "global.s"
      2
      3        .title  "screen modes"
      4        .module Modes
      5
      6        .area   _HOME
      7
      8_mode::
      9        pop de
     10        pop hl
     11        push hl
     12        push de
     13
     14.set_mode::
     15        ld a, l
     16        ld (.mode), a
     17        ret
     18
     19_get_mode::
     20        ld hl, #.mode
     21        ld l, (hl)
     22        ret