+;
+; Written by Groepaz <groepaz@gmx.net>
+;
+; void waitvsync (void);
+;
.export _waitvsync
+;
+; Written by Groepaz <groepaz@gmx.net>
+;
+; void waitvsync (void);
+;
.export _waitvsync
+;
+; Written by Groepaz <groepaz@gmx.net>
+;
+; void waitvsync (void);
+;
.export _waitvsync
.import PALFLAG
.include "cbm510.inc"
_waitvsync:
- jsr sys_bank ; Switch to the system bank
+ jsr sys_bank ; Switch to the system bank
sei
- ldy #VIC_CTRL1
+ ldy #VIC_CTRL1
@l1:
- lda (vic),y
- bpl @l1
+ lda (vic),y
+ bpl @l1
@l2:
- lda (vic),y
- bmi @l2
+ lda (vic),y
+ bmi @l2
cli
- jmp restore_bank
+ jmp restore_bank
;
+; Written by Groepaz <groepaz@gmx.net>
+;
; void waitvsync (void);
;
;
-; Written by Groepaz/Hitmen <groepaz@gmx.net>
+; Written by Groepaz <groepaz@gmx.net>
; Cleanup by Ullrich von Bassewitz <uz@cc65.org>
;
; void waitvsync(void);
;
+; Written by Groepaz <groepaz@gmx.net>
+;
; void waitvsync (void);
;
+;
+; Written by Groepaz <groepaz@gmx.net>
+;
+; void waitvsync (void);
+;
.export _waitvsync
+;
+; Written by Groepaz <groepaz@gmx.net>
+;
+; void waitvsync (void);
+;
+
.export _waitvsync
.include "vic20.inc"