1 .\" SPDX-License-Identifier: BSD-2-Clause
3 .\" Copyright (c) 2021 Alessio Chiapperini
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .Op Fl s Ar scaling_factor
35 .Op Fl d Ar cycle_delay
39 is a CHIP-8 emulator implemented in C99 using the SDL2 multimedia library.
44 reads from standard input. The predefined window size is 64x32, but it can be scaled up using the
46 flag. Moreover, since the CHIP-8 has no specified clock speed and different games run at different
47 speeds, the delay in milliseconds between cycles can be specified via the
49 flag which defaults to 3ms if not specified otherwise.
51 The options are as follows:
52 .Bl -tag -width indent
53 .It Fl s Ar scaling_factor
56 as a multiplier for the predefined window size of 64x32.
57 .It Fl d Ar cycle_delay
60 as time in milliseconds between cycles.
65 utility exits 0 on success, and 1 if an error occurs.
67 Load ROM from stdin and display it in 640x320 with the default 3ms cycle delay:
70 Load ROM from file and scale the window to 640x320 with a 2ms cycle delay:
72 .Dl "c8emul -s 10 -d 2 Chip8_Picture.ch8"
74 .Bl -tag -width indent
75 .It Audio is not supported.
78 .An Alessio Chiapperini Aq Mt alessio.chiapperini@\:nullbuffer.com