Is there a way to perform a bitwise NAND operation on the bits in two registers in ARM7, either with the existing AND, OR and EOR operations or other instructions?
NAND logical bitwise operation in ARM
4.1k Views Asked by user3001845 At
2
There are 2 best solutions below
0
auselen
On
and then mvn (move not).
From GCC explorer
int nand(int a, int b) {
return ~(a & b);
}
nand(int, int):
and r0, r0, r1
mvn r0, r0
bx lr
Related Questions in ASSEMBLY
- (x64 Nasm) Writeline function on Linux
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Why do we need AX instead of MOV DS, data directly with a segment?
- Bootloader in Assembly with Linux kernel
- How should the byte sequence 0x40 0x55 be interpreted by an x86-64 emulator?
- C++ code into assembly
- Drawing circles of increasing radius
- Assembly print on screen using pop ecx
- Equivalent to asm volatile in Gfortran?
- Show 640x480 BMP image with inline ASM c++
- Keep track of numbers entered in by a user in assembly
- 8086 Assembly Arrays with I/O
- DB ASM variable in Inline ASM C++
- What does Jump to means in callgrind?
- How to convert binary into decimal in assembly x8086?
Related Questions in ARM
- Why Device Tree Structure (DTS) file is needed both in bootloader and kernel source code?
- How can I use LD to place ARM reset vectors in a program segment
- Errors in makefile for qemu 0.14.1 in ubuntu 15.04 64 bit
- Text as parameter in inline assembly (ARM)?
- GSL: nm outputs "undefined Symbol (U)"
- How to address multiple definition compiler error
- Did anyone compiled GSL for androind?
- Linker Error on cross compiling Project in eclipse
- How to set privilaged mode in ARM Cortex-A8?
- Why is a write to a memory-mapped peripheral register not actioned (LPC43xx)?
- what's ARM TCM memory
- Traversing a string using arm assembly inside V8 source
- C Global declared in ISR
- Which is better? int8_t vs int32_t in 32 bits MCU
- Cannot find -lgtk-x11-2.0. Also, some modules are not found by cmake, though they are installed
Related Questions in BITWISE-OPERATORS
- How to check each bit in 16 bit address in C
- Getting four bits from the right only in a byte using bit shift operations
- Solving bitwise XOR and ADD equation
- php synatax $b = (6 << 1); clarification
- how to set 3 lower bits of uint8_t in C
- Why is 0x7FFFFFFFull | (1 << 31) returning 0xFFFFFFFFFFFFFFFF in C++?
- Negating ints in Java
- Having trouble understanding a portion of code (bit operation)
- Convert bit sequence to uint32_t in c++
- Set a given binary flag
- unsigned right shift '>>>' Operator in sql server
- Bitwise operations, ulong and int
- Check if a bitmask consists of multiple flags
- How to XOR numbers together then extract a number
- how to replace given nibbles with another set of nibbles in an integer
Related Questions in ARM7
- Programming embedded without interrupts
- How to compare and swap atomically in ARM7?
- Issues with Writing
- If interrupted between instructions a, b do some stuff
- What is non-aligned access? (ARM/Keil)
- Keil ARM7 Program That Searches An Array
- Confusion about the Link Register content during exceptions in ARM
- Trying to understand an assembly line of ARM7
- Max Pending Interrupts
- ARM While directive - repeating labels
- NAND logical bitwise operation in ARM
- How to generate Proteus compatible debug files using gcc-arm-none-eabi toolchain
- GoogleAdd framework failed in ARM7?
- ARM7 assembly shifting a number with a signed integer
- Same ARM7 assembly code for two unsigned integers program and two signed integers program
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Sure; AND the two registers and then EOR the result with all 1's (for the negation).