83:ROMCalls:4382

From WikiTI
Revision as of 11:49, 26 April 2005 by Guillaumeh (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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