(byte b)
| 1138 | } |
| 1139 | |
| 1140 | private void setStatus(byte b) { |
| 1141 | N = (b & 0x080) != 0; |
| 1142 | V = (b & 0x040) != 0; |
| 1143 | // B flag is unaffected in this way. |
| 1144 | D = (b & 0x08) != 0; |
| 1145 | I = (b & 0x04) != 0; |
| 1146 | Z = (b & 0x02) != 0; |
| 1147 | C = (char) (b & 0x01); |
| 1148 | } |
| 1149 | |
| 1150 | private void returnFromInterrupt() { |
| 1151 | setStatus(pop()); |
no outgoing calls
no test coverage detected