X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=assembler%2Ftest.asm;h=cea8724e682606a6b46971ffe21a01007df8a3d3;hb=bc3140bff6b2fc261c1de3dc08e83f04679747e8;hp=a228d45c5fcf606e26f0374bd82881657b61fef3;hpb=949f7affad6c3948d20c6d3dabb866143000e89d;p=b43-tools.git diff --git a/assembler/test.asm b/assembler/test.asm index a228d45..cea8724 100644 --- a/assembler/test.asm +++ b/assembler/test.asm @@ -39,6 +39,9 @@ mov (1 + (%assert(1 == ((1 + 2) - 2)))), r0 label: + /* MUL instruction */ + mul r0,r1,r2 /* mul, r2 := msb, spr6d := lsb */ + /* ADD instructions */ add r0,r1,r2 /* add */ add. r0,r1,r2 /* add, set carry */ @@ -89,6 +92,10 @@ testlabel: jge r0,r1,label /* jump if greater or equal */ jg r0,r1,label /* jump if greater */ jle r0,r1,label /* jump if less or equal */ + jdn r0,r1,label /* jump if difference is negative */ + jdpz r0,r1,label /* jump if difference is non negative */ + jdp r0,r1,label /* jump if difference is positive */ + jdnz r0,r1,label /* jump if difference is non positive */ jzx 7,8,r0,r1,label /* Jump if zero after shift and mask */ jnzx 7,8,r0,r1,label /* Jump if nonzero after shift and mask */