;
; group j, test 3
;
; xor.16    a,a
; xor.16    a,b
;

m4_include(..\tmacros.h)

INIT_TEST(h,0x02)

; declare symbols here
SYM(next0)
SYM(next1)
SYM(next2)
SYM(next3)

SUBTEST(1)
;   xor.16  a,a
    ld.16   a,0x1234
    xor.16  a,a
    push    msw
    cmpb.eq.16	a,0,next0
    FAIL
next0:
    pop	a
    and.16  a,0x5
    cmpb.eq.16	a,1,next1
    FAIL
next1:

SUBTEST(1)
;   xor.16  a,b
    ld.16   a,0xffff
    ld.16   b,0x5555
    xor.16  a,b
    push    msw
    cmpb.eq.16	a,0xaaaa,next2
    FAIL
next2:
    pop	a
    and.16 a,0x5
    cmpb.eq.16	a,4,next3
    FAIL
next3:

;   Finally, when done branch to pass
    END_TEST
