File:  [HATARI the Atari ST Emulator] / hatari / tests / cpu / int_abcd.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 9 08:58:39 2019 UTC (7 years, 3 months ago) by root
Branches: hatari, MAIN
CVS tags: hatari02210, hatari02200, HEAD
hatari 2.2.0


/* test that ABCD clears Z only if result is nonzero */
.global tst_abcd_1
tst_abcd_1:
	clr.l	d0
	move.l	#1,d1
	abcd	d0,d0
	seq	d0
	rts

.global tst_abcd_2
tst_abcd_2:
	move.l	#1,d1
	clr.l	d0
	abcd	d1,d1
	seq	d0
	rts

.global tst_abcd_3
tst_abcd_3:
	move.l	#0x033,d0
	move.l	#0x044,d1
	abcd	d1,d0
	cmp.l	#0x77,d0
	sne	d0
	rts

.global tst_abcd_4
tst_abcd_4:
	move.l	#0x155,d0
	abcd	d0,d0
	cmp.l	#0x110,d0
	sne	d0
	rts

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.