I'm doing work on The Battle of Midway again. One of the things I'm trying to fix is an unexpected HMOVE bar in the upper left corner of the screen. I attempted to debug this by setting a break at the beginning of my kernel, immediately after the timed VBLANK wait completes. I was surprised to find that it returned on scanline 36. There should be 3 scanlines for vertical sync, then 37 lines of vertical blank. So a WSYNC right after VBLANK ends should start the screen on scanline 40, correct? If my VBLANK is ending at scanline 36, I can only guess that my TIM64 setting isn't long enough. I'm using 44, which I grabbed from an Atari programming tutorial 4 years ago. It's set after the initial 3 WSYNCs for vertical sync.
My other question is what display property values should be used in Stella for a standard NTSC cart? The default values seem strange. YStart is 34. Shouldn't that be 40 for NTSC? And the Height is 210. Shouldn't that be 192 for NTSC? An explanation of these values would be greatly appreciated.
TIA,
TROGDOR
Edited by TROGDOR, Sun Aug 19, 2007 12:21 AM.














