On the emulation side, I still get problems--I've tested several VICE versions ranging from 1.18 to 2.1 and all behave differently from a real machine. Mess emulator behaves even worse than VICE because it displays strange dots artifacts on the demo program I've compiled.
If you want to check yourself, here is the binary .prg:
http://xoomer.virgilio.it/aporcino/Vic20/primer.prg
it's nothing else than your "sample.s" with a custom IRQ that flips screen color on each IRQ call. My idea is that, if everything is OK, the colour change should be perceived as a plain color flicker. If timing is wrong, the flickering should be fuzzy and blocky.
If you check it, do that in PAL and NTSC and tell me if in your emulator it runs as expected.
@nbla000: this SSS thing is so intriguing that I've come out of my lurk mode
