Skip to content

Commit

Permalink
Change the default value of the 'first-edge' parameter from -2168 to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
skoolkid committed Aug 6, 2023
1 parent a8f9fc0 commit e0e2ce0
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 143 deletions.
12 changes: 5 additions & 7 deletions skoolkit/tap2sna.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _set_sim_load_config(options):
options.contended_in = False
options.fast_load = True
options.finish_tape = False
options.first_edge = -2168
options.first_edge = 0
options.load = None
options.machine = '48'
options.pause = True
Expand Down Expand Up @@ -892,12 +892,10 @@ def _print_sim_load_config_help():
--sim-load-config first-edge=N
Set the time (in T-states) from the start of the tape at which to place the
leading edge of the first pulse (default: -2168). The default value places
the edge between the first and second pulses on the tape at time 0. Any
pulses that occur before time 0 are discarded. The EAR bit reading yielded by
a pulse is 0 if the 0-based index of the pulse is even (i.e. first, third,
fifth pulses etc.), or 1 otherwise. Some loaders require first-edge=0, which
effectively reverses the polarity of every pulse on the tape.
leading edge of the first pulse (default: 0). Any pulses that occur before
time 0 are discarded. The EAR bit reading yielded by a pulse is 0 if the
0-based index of the pulse is even (i.e. first, third, fifth pulses etc.), or
1 otherwise.
--sim-load-config load=KEYS
Expand Down
15 changes: 6 additions & 9 deletions sphinx/source/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ parameters are:
simulation as soon as that address is reached, regardless of whether the tape
has finished (``0``, the default)
* ``first-edge`` - the time (in T-states) from the start of the tape at which
to place the leading edge of the first pulse (default: ``-2168``)
to place the leading edge of the first pulse (default: ``0``)
* ``load`` - a space-separated list of keys to press to build an alternative
command line to load the tape (see below)
* ``machine`` - the type of machine to simulate: a 48K Spectrum (``48``, the
Expand All @@ -1412,14 +1412,11 @@ parameters are:
* ``trace`` - the file to which to log all instructions executed during the
simulated LOAD (default: none)

The default value of the ``first-edge`` parameter (-2168) places the edge
between the first and second pulses on the tape at time 0. Any pulses that
occur before time 0 are discarded. The EAR bit reading yielded by a pulse is 0
if the 0-based index of the pulse is even (i.e. first, third, fifth pulses
etc.), or 1 otherwise. Some loaders require ``first-edge=0``, which effectively
reverses the polarity of every pulse on the tape. Run *tap2sna.py* with the
``--tape-analysis`` option to see the timings and EAR bit readings of the
pulses on a tape.
If ``first-edge`` is set to a negative number, any pulses that occur before
time 0 are discarded. The EAR bit reading yielded by a pulse is 0 if the
0-based index of the pulse is even (i.e. first, third, fifth pulses etc.), or 1
otherwise. Run *tap2sna.py* with the ``--tape-analysis`` option to see the
timings and EAR bit readings of the pulses on a tape.

The ``accelerator`` parameter must be either a comma-separated list of specific
accelerator names or one of the following special values:
Expand Down
15 changes: 6 additions & 9 deletions sphinx/source/man/tap2sna.py.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ parameters are:
simulation as soon as that address is reached, regardless of whether the tape
has finished (``0``, the default)
* ``first-edge`` - the time (in T-states) from the start of the tape at which
to place the leading edge of the first pulse (default: ``-2168``)
to place the leading edge of the first pulse (default: ``0``)
* ``load`` - a space-separated list of keys to press to build an alternative
command line to load the tape (see below)
* ``machine`` - the type of machine to simulate: a 48K Spectrum (``48``, the
Expand All @@ -143,14 +143,11 @@ parameters are:
* ``trace`` - the file to which to log all instructions executed during the
simulated LOAD (default: none)

The default value of the ``first-edge`` parameter (-2168) places the edge
between the first and second pulses on the tape at time 0. Any pulses that
occur before time 0 are discarded. The EAR bit reading yielded by a pulse is 0
if the 0-based index of the pulse is even (i.e. first, third, fifth pulses
etc.), or 1 otherwise. Some loaders require ``first-edge=0``, which effectively
reverses the polarity of every pulse on the tape. Run ``tap2sna.py`` with the
``--tape-analysis`` option to see the timings and EAR bit readings of the
pulses on a tape.
If ``first-edge`` is set to a negative number, any pulses that occur before
time 0 are discarded. The EAR bit reading yielded by a pulse is 0 if the
0-based index of the pulse is even (i.e. first, third, fifth pulses etc.), or 1
otherwise. Run ``tap2sna.py`` with the ``--tape-analysis`` option to see the
timings and EAR bit readings of the pulses on a tape.

The ``accelerator`` parameter must be either a comma-separated list of specific
accelerator names or one of the following special values:
Expand Down
Loading

0 comments on commit e0e2ce0

Please sign in to comment.