cscg22-gearboy

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

___sdcc_bcall_ehl.s (321B)


      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	(.MBC_ROM_PAGE),a	; Perform the switch
     11	rst	0x20
     12	pop	af			; Pop the old bank
     13	ldh	(__current_bank),a
     14	ld	(.MBC_ROM_PAGE),a
     15	ret