cscg22-gearboy

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

clock.s (223B)


      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