11. Detecting Overflow

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 9

  • @jonknight4616
    @jonknight4616 4 роки тому +1

    Thanks, helped me figure out how overflow connected in with everything!

  • @fadwaadnan8499
    @fadwaadnan8499 3 роки тому +5

    the fact he seemed like crying explaining this, makes me want to cry too

  • @MostafaAbdelrehim
    @MostafaAbdelrehim 2 роки тому

    01 + 01 = 10 which seems 2 but it is not if we are dealing with signed numbers and actually 10 is -2 (not 2). Now the idea of using the last two carry bits seems flawed. plz, Mr. Padraic correct me if I am wrong. I am very open to discuss this to remove any confusion I might have. Thanks

    • @MostafaAbdelrehim
      @MostafaAbdelrehim 2 роки тому

      just one simple clarification to anyone who reads my comment, 01+01 should = 010 because only with 3 bits we can represent 2 in signed number

  • @kainatqureshi8230
    @kainatqureshi8230 6 років тому +1

    Can someone please tell me how will this problem be solved? I mean how can we resolve this problem if overflow has occurred in our circuit??

    • @mspeir
      @mspeir 5 років тому +6

      Overflow is usually set as a condition flag and left to the program to deal with. There is no way in hardware to prevent or deal with overflow. Understand that overflow is typically a software bug. The programmer is trying to do arithmetic on two numbers whose result cannot be held in the result of the ALU and/or registers.

  • @arafathdhroba8897
    @arafathdhroba8897 Рік тому

    thank you .

  • @jinccha8234
    @jinccha8234 3 роки тому

    Thank you!

  • @panayiotisphotiadis4636
    @panayiotisphotiadis4636 3 роки тому

    agapose