- Provided an implementation for textcolor(char color) in conio.h - Updated the header to NES2.0 -Updated the .gitattributes to prefer LF line endings - Stored CHR-ROM in a binary file (instead of .byte commands) - Freed up some memory, increased the C stack size from $300 to $400 - Fixed issues #2989, #1570 - Fixed the first frame of startup displaying an uninitialized nametable - Fixed the conio peek functions causing graphical glitches - Made the waitvsync() function more robust - Various other code optimizations
22 lines
382 B
ArmAsm
22 lines
382 B
ArmAsm
;
|
|
; Written by Groepaz <groepaz@gmx.net>
|
|
; Cleanup by Ullrich von Bassewitz <uz@cc65.org>
|
|
; Rewritten by Brandon Woodward
|
|
;
|
|
; void waitvsync(void);
|
|
;
|
|
|
|
.export _waitvsync
|
|
|
|
.include "nes.inc"
|
|
|
|
.proc _waitvsync
|
|
|
|
ldx #0
|
|
stx VBLANK_FLAG
|
|
@wait: lda VBLANK_FLAG
|
|
beq @wait
|
|
rts
|
|
|
|
.endproc
|