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 c4d1887..5e1c991 100644 Binary files a/tools/tests/avra/test1.expected and b/tools/tests/avra/test1.expected differ