_toggle_freq.tcl 284 B

12345678910
  1. set_help_text toggle_freq "Switch the VDP between PAL (50 Hz)/NTSC (60 Hz)."
  2. proc toggle_freq {} {
  3. vdpreg 9 [expr {[vdpreg 9 ] ^ 2}]
  4. poke 0xFFE8 [expr {[peek 0xFFE8] ^ 2}]
  5. set freq [expr {([vdpreg 9] & 2) ? 50 : 60}]
  6. osd::display_message "Frequency set to $freq Hz" info
  7. }