X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=assembler%2Ftest.asm;h=b0e86d903188819ee087ac739751fbe2d89ce6eb;hb=7300a854837ee58f13af1e66acd96295b8811d05;hp=b1f3f147b01267d520f7ce287aefc3b36abe7c79;hpb=1c0560b49eb2c403d0d0fa99f789f13f750a40d8;p=b43-tools.git diff --git a/assembler/test.asm b/assembler/test.asm index b1f3f14..b0e86d9 100644 --- a/assembler/test.asm +++ b/assembler/test.asm @@ -38,7 +38,6 @@ label: addc r0,r1,r2 /* add with carry */ addc. r0,r1,r2 /* add with carry, set carry */ -or 0x1000, r0, r0 testlabel: /* SUB instructions */ sub r0,r1,r2 /* sub */ @@ -88,8 +87,8 @@ testlabel: jnzx 7,8,r0,r1,label /* Jump if nonzero after shift and mask */ /* jump on external conditions */ - jext ECOND_MAC_ON,r0,r0,label /* jump if external condition is TRUE */ - jnext ECOND_MAC_ON,r0,r0,label /* jump if external condition is FALSE */ + jext ECOND_MAC_ON,label /* jump if external condition is TRUE */ + jnext ECOND_MAC_ON,label /* jump if external condition is FALSE */ /* Subroutines */ call lr0,label /* store PC in lr0, call func at label */ @@ -123,6 +122,7 @@ function_a: nap jmp loop- out: + mov r0, r0 ret lr0, lr1 function_b: @@ -131,6 +131,7 @@ function_b: nap jmp loop- out: + mov r0, r0 ret lr0, lr1