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