| 559 | int newppu = 0; |
| 560 | |
| 561 | void ppu_getScroll(int &xpos, int &ypos) { |
| 562 | if (newppu) { |
| 563 | ypos = ppur._vt * 8 + ppur._fv + ppur._v * 256; |
| 564 | xpos = ppur._ht * 8 + ppur.fh + ppur._h * 256; |
| 565 | } else { |
| 566 | xpos = ((RefreshAddr & 0x400) >> 2) | ((RefreshAddr & 0x1F) << 3) | XOffset; |
| 567 | |
| 568 | ypos = ((RefreshAddr & 0x3E0) >> 2) | ((RefreshAddr & 0x7000) >> 12); |
| 569 | if (RefreshAddr & 0x800) ypos += 240; |
| 570 | } |
| 571 | } |
| 572 | //--------------- |
| 573 | |
| 574 | static DECLFR(A2002) { |
no outgoing calls
no test coverage detected