2 ; Stefan Haubenthal, 2004-10-07
3 ; Based on code from Pu-239
5 ; unsigned char get_tv (void);
6 ; /* Return the video mode the machine is using */
12 ;--------------------------------------------------------------------------
23 bne @L0 ; wait for line 1
25 beq @L2 ; line 0 reached -> NTSC
29 @L2: rts ; system detected: 0 for NTSC, 1 for PAL