From 0a9ac27cf6ae5cc6dfddc19aed34c1b1d0b42962 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 22 Dec 2019 14:55:38 -0500 Subject: [PATCH] avra: add SBIC and SBIS --- apps/zasm/avr.asm | 4 ++++ tools/tests/avra/test1.asm | 1 + tools/tests/avra/test1.expected | Bin 28 -> 30 bytes 3 files changed, 5 insertions(+) diff --git a/apps/zasm/avr.asm b/apps/zasm/avr.asm index 051a283..0a65537 100644 --- a/apps/zasm/avr.asm +++ b/apps/zasm/avr.asm @@ -107,6 +107,8 @@ instrNames: .equ I_CBI 87 .db "CBI", 0 .db "SBI", 0 +.db "SBIC", 0 +.db "SBIS", 0 .db 0xff ; Instruction table @@ -209,6 +211,8 @@ instrTbl: ; A(5) + bit: XXXXXXXX AAAAAbbb .db 0x09, 0b10011000, 0x00 ; CBI A, b .db 0x09, 0b10011010, 0x00 ; SBI A, b +.db 0x09, 0b10011001, 0x00 ; SBIC A, b +.db 0x09, 0b10011011, 0x00 ; SBIS A, b ; Same signature as getInstID in instr.asm ; Reads string in (HL) and returns the corresponding ID (I_*) in A. Sets Z if diff --git a/tools/tests/avra/test1.asm b/tools/tests/avra/test1.asm index 64868ca..bd70276 100644 --- a/tools/tests/avra/test1.asm +++ b/tools/tests/avra/test1.asm @@ -15,3 +15,4 @@ baz: out 0x2e, r12 in r0, 0x9 cbr r31, 0xff +sbis 22, 5 diff --git a/tools/tests/avra/test1.expected b/tools/tests/avra/test1.expected index c4d18875303f2feaa88c32866fb335c9ab715ade..5e1c99142f29dc7d12b8b921debe1e1d1cd24372 100644 GIT binary patch delta 7 Ocmb1nIHoI0t^7>