blob: 067ce26ba7084073f79cc35476f798f04be35e2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
.export _waitvcount
.include "atari.inc"
; wait for VCOUNT to reach a particular value. Use this
; to avoid updating parts of the screen while ANTIC is
; reading from it.
; c should be ((4 + Yposition) * 4), where Yposition is
; the text line below the bottom one you're about to modify.
; void __fastcall__ waitvcount(unsigned char *c)
_waitvcount:
sta FR1
w:
lda VCOUNT
cmp FR1
bne w
STA WSYNC ; finish current scanline
rts
|