diff options
Diffstat (limited to '')
| -rw-r--r-- | src/utils/assembler.spec.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/assembler.spec.ts b/src/utils/assembler.spec.ts index 614ff3d..7b1491f 100644 --- a/src/utils/assembler.spec.ts +++ b/src/utils/assembler.spec.ts @@ -71,6 +71,14 @@ describe('AVR assembler', () => { expect(assemble('BRBS 3, -4').bytes).toEqual(bytes('f3f3')); }); + it('should correctly assemble BREQ with forward label target', () => { + expect(assemble('BREQ next \n next:').bytes).toEqual(bytes('01f0')); + }); + + it('should correctly assemble BRNE with forward label target', () => { + expect(assemble('BRNE next \n next:').bytes).toEqual(bytes('01f4')); + }); + it('should correctly assemble `CBI 0xc, 5`', () => { expect(assemble('CBI 0xc, 5').bytes).toEqual(bytes('6598')); }); |
