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/asm/sm83/_strcpy.s

      1         .module strcpy
      2 
      3         .area   _HOME
      4 
      5 ; char *strcpy(char *dest, const char *source)
      6 _strcpy::
      7         lda     hl,2(sp)
      8         ld      a,(hl+)
      9         ld      e, a
     10         ld      a,(hl+)
     11         ld      d, a
     12         ld      a,(hl+)
     13         ld      h,(hl)
     14         ld      l,a
     15 
     16         push    de
     17 1$:     
     18         ld      a,(hl+)
     19         ld      (de),a
     20         inc     de
     21         or      a,a
     22         jr      nz,1$
     23 
     24         pop     de
     25         ret
     26         

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