Skip to main content

Questions tagged [flag]

Programming flag is a bit or value that, a program uses to remember something

Filter by
Sorted by
Tagged with
2 votes
4 answers
301 views

Interrupts in microprocessors

This might be a very trivial question, but I was unable to find a concise answer to it. For non maskable interrupts, are the interrupts handled immediately while the current instruction is getting ...
Kashish's user avatar
  • 31
-2 votes
1 answer
65 views

DLW-1 and DLW-2 flags [closed]

What are the various flags in DLW-1 and DLW-2 microprocessors? I have read about sign flag, overflow flag and zero flag but im not sure Also it will be really helpful if you know a source from where i ...
Muskan's user avatar
  • 1
0 votes
1 answer
376 views

Flash memory to hold flags

I'm trying to write bootloader code and I needed to be able to use an address in flash memory as a flag to the bootloader to let it know if it should enter bootloader or the application. I'm able to ...
doge's user avatar
  • 63
0 votes
1 answer
26 views

PCA9956A How to set AIF bit

I am using the https://www.nxp.com/docs/en/data-sheet/PCA9956A.pdf chip to control LEDs. To set the autoincrement mode three beets are needed, But the AIF bit is ...
0___________'s user avatar
  • 2,584
-1 votes
1 answer
1k views

Parity flag in 8085 microprocessor

What happens to the parity flag of an Intel 8085 microprocessor when there is no '1' bit in the accumulator? For example, if the following instruction executes, MVI A, 05H MVI B, 05H SUB B the ...
Durgesh's user avatar
0 votes
2 answers
178 views

How to read flag register in datasheet?

I'm having troubles deciphering the datasheet for the DS3231 RTC. The below table shows that 0x02 bit 6 is the flag to operate in 12- or 24-hour mode. But which one correspond to the bit being low or ...
Antoine's user avatar
  • 139
3 votes
1 answer
64 views

Are flags strictly related to interrupts or not?

If we want to some flag to be set when true (for example FIFO is full), does that mean that we have to enable the interrupts? Whether it will be set if interrupts are not enabled? Are that flags ...
Patrick's user avatar
  • 79
1 vote
3 answers
2k views

Overflow results into wrong sign-flag bit set in 8085 microprocessor .

In case of 8085 microprocessor when the MSB bit of accumulator is 1 then sign flag becomes 1 ( simply copy the result's msb) , my question is that : When we add two positive numbers say 44H(01000100) ...
Minion's user avatar
  • 111
0 votes
1 answer
780 views

Assembler language basics parity flag

I am a beginner in assembler language I was reading some stuff online(belongs to a university) and I saw that the P bit in psw after executing this instruction mov a,#03h A=0000 0011B so P=0 first ...
whyyoucare's user avatar
3 votes
3 answers
4k views

How was the Zero Flag implemented on Z80 ALU?

Z80 was a popular 8-bit processor with a 4-bit ALU. Implementing a zero flag for a register should be straight forward, it would be a logical NOR of all the bits ...
GabrielOshiro's user avatar
0 votes
2 answers
3k views

8080 assembly comparing which of the numbers is greater etc

In my 8080 assembly project I need to check if user entered digits and if so do some stuff on it, otherwise display some error and close app. Normally i would do it like that ...
Rotek's user avatar
  • 3
2 votes
1 answer
250 views

The same flag for an interrupt

I think I'm mixed up a bit in NVIC of stm32 MCUs. I took a look in the SPI.h of the STM32F10x standard peripheral library. I don't know that why while there is ...
Roh's user avatar
  • 4,640