Sequential (145) fields codes being changed
https://johnchihau.blogspot.com/2026/04/john-take-look_01356192742.html?m=1
.
Ref: https://johnchihau.blogspot.com/2026/04/blog-post_28.html?m=1
..
.
Int a;
Int b;
.
If (a = b)
{
Interrupt setting-A
Interrupt setting-B
Interrupt setting-C
}
.
John : The code above can't work in reality.
Me (stunned): can't work?
John: No, it can't. In reality, the system must break the code above down into 3 parts else it can't work. They are,
.
____
Int a;
Int b; <--- The system break it down into 3 parts. They are b[A], b[B], b[C] respectively.
.
If (a = b [A])
{
Interrupt setting-A
}
___
If (a = b [B])
{
Interrupt setting-B
}
___
If (a = b [C])
{
Interrupt setting-C
}
___
Me: It's very clumsy.
.
John : Being Clumsy is a must.
.
Me: In another words, compare-A, compare-B and compare-C are 3 independent data-registers.
John : Yes, they are. Meanwhile, Interrupt setting-A, Interrupt setting-B and Interrupt setting-C are 3 independent data-register as well.
Me: In another words, it must be 1 to 1. It couldn't be 1 to many.
John: It's true. There're 6 independent data-registers.

Comments
Post a Comment