I am studying in high school, and we have an electronics project.
We have one output from our computer which is 4 bits, the output address is 37Ah
and my teacher did this:
outportb (0x37A , 0x80);
Then what will appear in the output? 0h or 8h?
Unless it is a 4-bit CPU since the 70s, then your output port will be < Strong> 8 bits, but the connected hardware can only use 4. In that case it is common to use at least 4 bit (but not necessary) so that you have the value of 0x0. But a smoke that uses 0x80, it will be similar to 0x00 and 0xF0. So alone I think that the upper 4 bits are used here, and the sent value is 0x8
but a twisted hardware engineer could use the middle 4 bits.
Comments
Post a Comment