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/clock.s

      1 	.include	"global.s"
      2 
      3 	.title	"System clock"
      4 	.module	Clock
      5 
      6 	;; BANKED:	checked
      7 	.area	_HOME
      8 
      9 _clock::
     10 	LD	HL,#.sys_time
     11 	DI
     12 	LD	A,(HL+)
     13 	EI			;; Interrupts are disabled for the next instruction...
     14 	LD	D,(HL)
     15 	LD	E,A
     16 	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.