;  
; group b, test 1  
;  
; Load immediate - 8 bit, no sign extend  
; nops  
;  
m4_include(..\tmacros.h)  
  
INIT_TEST(b,0x01)  
  
; declare symbols here  
    SYM(next0)  
    SYM(next1)  
    SYM(next2)  
    SYM(next3)  
    SYM(next4)  
  
; Begin test here  
  
SUBTEST(1)  
  
    ; basic 8-bit load immediate for A and B  
    ld.8    a,0x00  
    cmpb.eq.8	a,0x00,next0  
    FAIL  
  
next0:  
    ld.8    b,0x3f  
    copy    a,b  
    cmpb.eq.8	a,0x3f,next1  
    FAIL  
  
next1:  
    ; now, make sure we don't mess with upper byte  
    ld.16   a,0x1234  
    ld.8    a,0x11  
    cmpb.eq.16	a,0x1211,next2  
    FAIL  
next2:  
  
    ; same, but with sign bit hit  
    ld.16   a,0x3333  
    ld.8    a,0xff  
    cmpb.eq.16	a,0x33ff,next3  
    FAIL  
  
next3:  
;   Finally, when done branch to pass  
    END_TEST  
  
