git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-lib/libc/targets/z80/msxdos/msx_refresh_oam.s

      1         .include        "global.s"
      2 
      3         .title  "VRAM utilities"
      4         .module VRAMUtils
      5 
      6         .globl __shadow_OAM_base
      7 
      8         .ez80
      9 
     10         .area   _HOME
     11 
     12 ; void refresh_OAM(); 
     13 _refresh_OAM::
     14         DISABLE_VBLANK_COPY     ; switch OFF copy shadow SAT
     15 
     16         ld de, #.VDP_SAT
     17         VDP_WRITE_CMD d, e
     18 
     19         ld h, #>_shadow_OAM
     20         ld l, #0
     21         ld c, #.VDP_DATA
     22         ld b, #128
     23 1$:
     24         outi
     25         jp nz, 1$
     26 
     27         ENABLE_VBLANK_COPY      ; switch OFF copy shadow SAT
     28         ret

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.