You are depending on undefined behavior, debugger usually breaks at hpos/vpos=(0,0) and usually CPU PC points to vblank routine's first instruction.
But there is no guarantee it happens. Which is exactly what happens when you use pipe to send commands.
|