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

      1         .include        "global.s"
      2 
      3         .area _HOME
      4 
      5 ___sdcc_bcall_ehl::                     ; Performs a long call.
      6         ldh     a, (__current_bank)
      7         push    af                      ; Push the current bank onto the stack
      8         ld      a, e
      9         ldh     (__current_bank), a
     10         ld      (rROMB0), a             ; Perform the switch
     11         rst     0x20
     12         pop     hl
     13         ld      l, a
     14         ld      a, h
     15         ldh     (__current_bank), a
     16         ld      (rROMB0), a
     17         ld      a, l
     18         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.