I'm going through the excellent 68000 assembler tutorials by Perihelion, and I'm having a problem with #9, about removing the top and bottom border of the screen.
With the listing as-is, the borders are not removed and the picture palette is all wrong:
If I edit the code to just attempt to remove the bottom border (by making sure I'm triggering the PAL/NTSC switch on line 199 instead of 228), the bottom border goes away but the palette on the last line is wrong too:
Not sure what's going on, the code makes sense to me but it's just not happening. Perhaps the timers are wrong somehow? Or is it an issue with emulation (Hatari), although I tried a couple of overscan demos and they work fine.
Any help would be appreciated

Cheers,
Nico