User Tools

Site Tools


wswan:tutorial:testing_emulator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wswan:tutorial:testing_emulator [2025/12/31 09:53] – created asiewswan:tutorial:testing_emulator [2025/12/31 09:53] (current) asie
Line 19: Line 19:
 wf-mednafen is a fork of [[https://mednafen.github.io/|Mednafen]]. It features a variety of emulation fixes, as well as debugger UI improvements from the [[https://github.com/pce-devel/mednafenPceDev|mednafenPceDev]] fork. wf-mednafen is a fork of [[https://mednafen.github.io/|Mednafen]]. It features a variety of emulation fixes, as well as debugger UI improvements from the [[https://github.com/pce-devel/mednafenPceDev|mednafenPceDev]] fork.
  
-Even with those fixes, its accuracy is behind Mesen 2 or Ares, but it *doesprovide [[https://mednafen.github.io/documentation/debugger.html|a debugger]]. In addition, it has some features which are missing from Mesen 2, in particular UART port and WonderWitch cartridge emulation.+Even with those fixes, its accuracy is behind Mesen 2 or Ares, but it //does// provide [[https://mednafen.github.io/documentation/debugger.html|a debugger]]. In addition, it has some features which are missing from Mesen 2, in particular UART port and WonderWitch cartridge emulation.
  
 You can download wf-mednafen [[https://github.com/WonderfulToolchain/wf-mednafen/releases|here]]. You can download wf-mednafen [[https://github.com/WonderfulToolchain/wf-mednafen/releases|here]].
Line 29: Line 29:
 First, create a script in a fixed location of choice on your hard drive (for example, ''%%/home/myuser/ws_serial.sh%%''): First, create a script in a fixed location of choice on your hard drive (for example, ''%%/home/myuser/ws_serial.sh%%''):
  
- #!/usr/bin/env bash +  #!/usr/bin/env bash 
- PATH=$HOME/.wine/dosdevices/com1 +  PATH=$HOME/.wine/dosdevices/com1 
- socat PTY,link="$PATH",echo=0 STDIO+  socat PTY,link="$PATH",echo=0 STDIO
  
 Make sure to set PATH to the location you want the UART socket file to be present; the default suggested above will expose the port as the COM1 serial port to Windows programs, such as TransMagic, in WINE. Make sure to set PATH to the location you want the UART socket file to be present; the default suggested above will expose the port as the COM1 serial port to Windows programs, such as TransMagic, in WINE.
Line 37: Line 37:
 Next, edit ''%%~/.mednafen/mednafen.cfg%%'' and edit the following options: Next, edit ''%%~/.mednafen/mednafen.cfg%%'' and edit the following options:
  
- wswan.excomm 1 +  wswan.excomm 1 
- wswan.excomm.path /home/myuser/ws_serial.sh+  wswan.excomm.path /home/myuser/ws_serial.sh
  
 From now on, after launching wf-mednafen, the UART port should be available under this socket file. Note that wf-mednafen restarts will invalidate the file, requiring a restart of the program on the other side. From now on, after launching wf-mednafen, the UART port should be available under this socket file. Note that wf-mednafen restarts will invalidate the file, requiring a restart of the program on the other side.
wswan/tutorial/testing_emulator.1767174780.txt.gz · Last modified: by asie