83:ROMCalls:4382

From WikiTI
Jump to: navigation, search


Synopsis

Official Name: _HTIMESL

BCALL Address: 4382

Inputs

  • H : must be <> 0
  • L

Outputs

  • HL = H*L

Destroys

  • B,D,E

Comments

Its code is :

code:
	ld	b,h
	ld	h,0
	ld	d,h
	ld	e,h
	ex	de,hl
	or	a
loop:
	adc	hl,de
	djnz	loop
	ret

Example