Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Very much so, with the small difference that the VCS features the `WSYNC` strobe to sync the CPU with the start of the scan-line, but here we don't have even this.

(Having said that, for something more complex, like an animated game display, you'd probably approach this very similarly: do the business/game logic in VBLANK, have a timer set for the start of the visible picture and run your display kernel. Now you can only hope that you wouldn't be off more than half a scan-line… That is, more realistically, you might do this only every 2nd or 3rd frame.)



Thanks, good point about the WSYNC. Being a Commodore guy, I was not aware of it.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: