	SECTION	"allcodes",CODE[0]

	adc	a,[hl]
	adc	a,0
	adc	a,a
	adc	a,b
	adc	a,c
	adc	a,d
	adc	a,e
	adc	a,h
	adc	a,l

	add	a,[hl]
	add	a,0
	add	a,a
	add	a,b
	add	a,c
	add	a,d
	add	a,e
	add	a,h
	add	a,l
	add	hl,bc
B0_0023:	add	hl,de
B0_0039:	add	hl,hl
B0_004F:	add	hl,sp
	add	sp,+$d

	and	a,[hl]
	and	a,0
	and	a,a
	and	a,b
	and	a,c
	and	a,d
	and	a,e
	and	a,h
	and	a,l

	bit	0,[hl]
	bit	0,a
	bit	0,b
	bit	0,c
	bit	0,d
	bit	0,e
	bit	0,h
	bit	0,l

	bit	1,[hl]
	bit	1,a
	bit	1,b
	bit	1,c
	bit	1,d
	bit	1,e
	bit	1,h
	bit	1,l

	bit	2,[hl]
	bit	2,a
	bit	2,b
	bit	2,c
	bit	2,d
	bit	2,e
	bit	2,h
	bit	2,l
	bit	3,[hl]
	bit	3,a
	bit	3,b
	bit	3,c
	bit	3,d
	bit	3,e
	bit	3,h
	bit	3,l
	bit	4,[hl]
	bit	4,a
	bit	4,b
	bit	4,c
	bit	4,d
	bit	4,e
	bit	4,h
	bit	4,l
	bit	5,[hl]
	bit	5,a
	bit	5,b
	bit	5,c
	bit	5,d
	bit	5,e
	bit	5,h
	bit	5,l
	bit	6,[hl]
	bit	6,a
	bit	6,b
	bit	6,c
	bit	6,d
	bit	6,e
	bit	6,h
	bit	6,l
	bit	7,[hl]
	bit	7,a
	bit	7,b
	bit	7,c
	bit	7,d
	bit	7,e
	bit	7,h
	bit	7,l

	call	$100	;B0_0100
	call	c,$100	;B0_0100
	call	nc,$100	;B0_0100
	call	nz,$100	;B0_0100
	call	z,$100	;B0_0100

	ccf

	cp	a,[hl]
	cp	a,0
	cp	a,a
	cp	a,b
	cp	a,c
	cp	a,d
	cp	a,e
	cp	a,h
	cp	a,l

	cpl
	daa

	dec	[hl]
	dec	a
	dec	b
	dec	bc
	dec	c
	dec	d
	dec	de
	dec	e
	dec	h
	dec	hl
	dec	l
	dec	sp

	di
	ei
	halt

	inc	[hl]
	inc	a
	inc	b
	inc	bc
	inc	c
	inc	d
	inc	de
	inc	e
	inc	h
	inc	hl
	inc	l
	inc	sp

	jp	[hl]
	jp	B0_0100
	jp	c,B0_0100
	jp	nc,B0_0100
	jp	nz,B0_0100
	jp	z,B0_0100

.rellabel	jr	.rellabel
	jr	c,.rellabel
	jr	nc,.rellabel
	jr	nz,.rellabel
	jr	z,.rellabel

	ld	[$FF00+c],a
	ld	[$100],sp
	ld	[$100],a
	ld	[$100],sp
	ld	[$FF00],a

	ld	[bc],a
	ld	[de],a
	ld	[hl],0
	ld	[hl],a
	ld	[hl],b
	ld	[hl],c
	ld	[hl],d
	ld	[hl],e
	ld	[hl],h
	ld	[hl],l
	ld	[hl+],a
	ld	[hl-],a
	ld	a,[$FF00+c]
	ld	a,[$100]
	ld	a,[$FF00]
	ld	a,[bc]
	ld	a,[de]
	ld	a,[hl+]
	ld	a,[hl-]
	ld	a,0
	ld	a,a
	ld	a,b
	ld	a,c
	ld	a,d
	ld	a,e
	ld	a,h
	ld	a,l
	ld	b,[hl]
	ld	b,0
	ld	b,a
	ld	b,b
	ld	b,c
	ld	b,d
	ld	b,e
	ld	b,h
	ld	b,l
	ld	bc,$100
	ld	c,[hl]
	ld	c,0
	ld	c,a
	ld	c,b
	ld	c,c
	ld	c,d
	ld	c,e
	ld	c,h
	ld	c,l
	ld	d,[hl]
	ld	d,0
	ld	d,a
	ld	d,b
	ld	d,c
	ld	d,d
	ld	d,e
	ld	d,h
	ld	d,l
	ld	de,$100
	ld	e,[hl]
	ld	e,0
	ld	e,a
	ld	e,b
	ld	e,c
	ld	e,d
	ld	e,e
	ld	e,h
	ld	e,l
	ld	h,[hl]
	ld	h,0
	ld	h,a
	ld	h,b
	ld	h,c
	ld	h,d
	ld	h,e
	ld	h,h
	ld	h,l
B0_002D:	ld	hl,$100
	ld	hl,sp+$d
	ld	l,[hl]
	ld	l,0
	ld	l,a
	ld	l,b
	ld	l,c
	ld	l,d
	ld	l,e
	ld	l,h
	ld	l,l
B0_0043:	ld	sp,$100
	ld	sp,hl
	ldd	a,[hl]
	ldd	[hl],a
	ldi	a,[hl]
	ldi	[hl],a
	ld	[$ff1e],a
	ld	a,[$fffe]

	nop

	or	a,[hl]
	or	a,0
	or	a,a
	or	a,b
	or	a,c
	or	a,d
	or	a,e
	or	a,h
	or	a,l
	or	[hl]

	pop	af
	pop	bc
	pop	de
	pop	hl

	push	af
	push	bc
	push	de
	push	hl

	res	0,[hl]
	res	0,a
	res	0,b
	res	0,c
	res	0,d
	res	0,e
	res	0,h
	res	0,l
	res	1,[hl]
	res	1,a
	res	1,b
	res	1,c
	res	1,d
	res	1,e
	res	1,h
	res	1,l
	res	2,[hl]
	res	2,a
	res	2,b
	res	2,c
	res	2,d
	res	2,e
	res	2,h
	res	2,l
	res	3,[hl]
	res	3,a
	res	3,b
	res	3,c
	res	3,d
	res	3,e
	res	3,h
	res	3,l
	res	4,[hl]
	res	4,a
	res	4,b
	res	4,c
	res	4,d
	res	4,e
	res	4,h
	res	4,l
	res	5,[hl]
	res	5,a
	res	5,b
	res	5,c
	res	5,d
	res	5,e
	res	5,h
	res	5,l
	res	6,[hl]
	res	6,a
	res	6,b
	res	6,c
	res	6,d
	res	6,e
	res	6,h
	res	6,l
	res	7,[hl]
	res	7,a
	res	7,b
	res	7,c
	res	7,d
	res	7,e
	res	7,h
	res	7,l

	ret
B0_0100:	ret	c
	ret	nc
	ret	nz
	ret	z

	reti
	reti

	rl	[hl]
	rl	a
	rl	b
	rl	c
	rl	d
	rl	e
	rl	h
	rl	l

	rla

	rlc	[hl]
	rlc	a
	rlc	b
	rlc	c
	rlc	d
	rlc	e
	rlc	h
	rlc	l

	rlca

	rr	[hl]
	rr	a
	rr	b
	rr	c
	rr	d
	rr	e
	rr	h
	rr	l

	rra

	rrc	[hl]
	rrc	a
	rrc	b
	rrc	c
	rrc	d
	rrc	e
	rrc	h
	rrc	l

	rrca

	rst	$10
	rst	$18
	rst	$20
	rst	$28
	rst	$30
	rst	$38
	rst	0
	rst	8

	sbc	a,[hl]
	sbc	a,0
	sbc	a,a
	sbc	a,b
	sbc	a,c
	sbc	a,d
	sbc	a,e
	sbc	a,h
	sbc	a,l

	scf

	set	0,[hl]
	set	0,a
	set	0,b
	set	0,c
	set	0,d
	set	0,e
	set	0,h
	set	0,l
	set	1,[hl]
	set	1,a
	set	1,b
	set	1,c
	set	1,d
	set	1,e
	set	1,h
	set	1,l
	set	2,[hl]
	set	2,a
	set	2,b
	set	2,c
	set	2,d
	set	2,e
	set	2,h
	set	2,l
	set	3,[hl]
	set	3,a
	set	3,b
	set	3,c
	set	3,d
	set	3,e
	set	3,h
	set	3,l
	set	4,[hl]
	set	4,a
	set	4,b
	set	4,c
	set	4,d
	set	4,e
	set	4,h
	set	4,l
	set	5,[hl]
	set	5,a
	set	5,b
	set	5,c
	set	5,d
	set	5,e
	set	5,h
	set	5,l
	set	6,[hl]
	set	6,a
	set	6,b
	set	6,c
	set	6,d
	set	6,e
	set	6,h
	set	6,l
	set	7,[hl]
	set	7,a
	set	7,b
	set	7,c
	set	7,d
	set	7,e
	set	7,h
	set	7,l

	sla	[hl]
	sla	a
	sla	b
	sla	c
	sla	d
	sla	e
	sla	h
	sla	l

	sra	[hl]
	sra	a
	sra	b
	sra	c
	sra	d
	sra	e
	sra	h
	sra	l

	srl	[hl]
	srl	a
	srl	b
	srl	c
	srl	d
	srl	e
	srl	h
	srl	l

	stop

	sub	a,[hl]
	sub	a,0
	sub	a,a
	sub	a,b
	sub	a,c
	sub	a,d
	sub	a,e
	sub	a,h
	sub	a,l

	swap	[hl]
	swap	a
	swap	b
	swap	c
	swap	d
	swap	e
	swap	h
	swap	l

	xor	a,[hl]
	xor	a,0
	xor	a,a
	xor	a,b
	xor	a,c
	xor	a,d
	xor	a,e
	xor	a,h
	xor	a,l