1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

intel 8080 アセンブラ 16bit乗算

Last updated at Posted at 2015-04-24

de * hl = hl

mul16:
	mov		b, h
	mov		c, l
	lxi		h, 0
mul1:
	mov		a, c
	rrc
	jnc		mul2
	dad		d
mul2:
	xra		a
	mov		a, b
	rar
	mov		b, a
	mov		a, c
	rar
	mov		c, a
	ora		b
	rz
	xra		a
	mov		a, e
	ral
	mov		e, a
	mov		a, d
	ral
	mov		d, a
	ora		e
	rz
	jmp		mul1

補足

今すぐ実行

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?