Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
b5a877a
Translated using Weblate (Czech)
dhrdlicka Jan 19, 2026
2a39924
Merge pull request #6733 from 86Box-chan/weblate-86box-86box
OBattler Jan 20, 2026
89eff9b
CPU: 40 MHz bus speed means 20 MHz PCI speed, per real hardware repor…
OBattler Jan 20, 2026
d258bea
Merge branch 'master' of https://github.com/86Box/86Box
OBattler Jan 20, 2026
275604d
IDE: Some fixes - it now works on the Intel Monsoon.
OBattler Jan 21, 2026
57c7e61
VLSI VL82c480: Re-enable the A20 stuff.
OBattler Jan 21, 2026
df39399
A small IDE fix from win2kgamer.
OBattler Jan 21, 2026
7a462af
AT NVR: Some changes in preparation for the MS-5156.
OBattler Jan 21, 2026
5a985e1
Translated using Weblate (Czech)
dhrdlicka Jan 20, 2026
6b014f6
Do RGB correction only on Qt5
Cacodemon345 Jan 21, 2026
0f54c6b
Merge pull request #6740 from Cacodemon345/patch-326817
OBattler Jan 21, 2026
0950aef
Merge pull request #6739 from 86Box-chan/weblate-86box-86box
OBattler Jan 21, 2026
f72da2a
Jenkins: Update appimage-builder setuptools manually to fix build
richardg867 Jan 21, 2026
97e1f5b
Jenkins: Enable DLS support and remove extraneous features from the A…
richardg867 Jan 21, 2026
06f9a46
Jenkins: Integrate mdsx library into the build process
richardg867 Jan 21, 2026
e2c61d3
Jenkins: Fix build
richardg867 Jan 22, 2026
1f01469
Let's try again!
richardg867 Jan 22, 2026
bbcc7e4
Translated using Weblate (Turkish)
ucucanok Jan 21, 2026
1c17bfd
Merge pull request #6742 from 86Box-chan/weblate-86box-86box
OBattler Jan 22, 2026
57af22f
Fix a warning in the VFIO code and attempt to use checkStateChanged i…
OBattler Jan 22, 2026
2d4bd42
Merge branch 'master' of https://github.com/86Box/86Box
OBattler Jan 22, 2026
9d1b731
The forgotten qt_defs.hpp.
OBattler Jan 22, 2026
3faabe6
It should not apply to qt_vmmanager_details.cpp.
OBattler Jan 22, 2026
56bed94
Or the other VM Manager files.
OBattler Jan 22, 2026
8c18273
Added the MSI-5156 (most of the work done by Kotochi).
OBattler Jan 22, 2026
b09cf5a
Jenkins: Don't include mdsx .a if it's generated
richardg867 Jan 22, 2026
b6adf1e
S3 and 8514/A compatible fixes for various stuff.
TC1995 Jan 23, 2026
0e9901a
Merge pull request #6744 from 86Box/TC1995
OBattler Jan 23, 2026
233900c
DEC Tulip: Reject transmissions with NO CARRIER error when link it do…
OBattler Jan 23, 2026
7ecfc54
Network: Send all packets to the void and receive nothing if the cabl…
OBattler Jan 23, 2026
f275ead
Rename ASUS TX97-HP to its HP OEM name
MaxwellS04 Jan 23, 2026
504c636
Merge pull request #6745 from MaxwellS04/Arnold3
OBattler Jan 23, 2026
72a4cc2
Remove the Elonex, Fujitsu-Siemens and newer Medion BIOS from the MS-…
kotochi98 Jan 23, 2026
4e7bb04
Hard reset dialog: Rely on clicked button instead of role.
OBattler Jan 23, 2026
2f07a1a
Merge pull request #6747 from kotochi98/ms6318
OBattler Jan 23, 2026
656d777
Help message: Always output to terminal on non-Windows platforms.
OBattler Jan 23, 2026
3e39182
Merge branch 'master' of https://github.com/86Box/86Box
OBattler Jan 23, 2026
c065c61
Also always make it MBX_INFO on Windows.
OBattler Jan 23, 2026
1c39c30
And get rid of the now useless s parameter.
OBattler Jan 23, 2026
774365d
Vulkan: Always do RGB correction on Windows
Cacodemon345 Jan 23, 2026
f81d7d0
Merge pull request #6748 from Cacodemon345/patch-776794
OBattler Jan 23, 2026
b92da6a
Translated using Weblate (Chinese (Simplified Han script))
BlueRain-debug Jan 22, 2026
ca0fbb5
Merge pull request #6749 from 86Box-chan/weblate-86box-86box
OBattler Jan 23, 2026
8ec8057
Add the beta evaluation BIOS for the MiTAC 6110zu and set the R804 re…
kotochi98 Jan 24, 2026
6cce07a
Merge pull request #6750 from kotochi98/vei8
OBattler Jan 24, 2026
197348a
PCI: Make PCI configuration reads and writes length-aware and fix the…
OBattler Jan 24, 2026
3e3e5b3
Merge branch 'master' of https://github.com/86Box/86Box
OBattler Jan 24, 2026
34c9b4c
NMC 93cXX EEPROM: Remove the left-over NULL check in nmc_93cxx_eepero…
OBattler Jan 24, 2026
9bd4114
Cirrus Logic: Reintroduce the thunks to SVGA reads/writes removed in …
OBattler Jan 24, 2026
e747f86
Trident TGUI: Remove excess logging.
OBattler Jan 24, 2026
c6d272f
Translated using Weblate (Chinese (Simplified Han script))
BlueRain-debug Jan 22, 2026
570483a
PCI: Make PCI configuration reads and writes length-aware and fix the…
OBattler Jan 24, 2026
01779aa
Add the beta evaluation BIOS for the MiTAC 6110zu and set the R804 re…
kotochi98 Jan 24, 2026
6d66855
NMC 93cXX EEPROM: Remove the left-over NULL check in nmc_93cxx_eepero…
OBattler Jan 24, 2026
fb03df6
Cirrus Logic: Reintroduce the thunks to SVGA reads/writes removed in …
OBattler Jan 24, 2026
f491069
Trident TGUI: Remove excess logging.
OBattler Jan 24, 2026
ca37758
nmc93cxx: Rewrite the nmc93cxx emulation
disean Jan 25, 2026
65e3c34
Merge branch 'master' into nmc93cxx_rewrite
OBattler Jan 25, 2026
e6935b7
VFIO: Fix a compile-breaking error accidentally introduced earlier to…
OBattler Jan 25, 2026
78e763b
Merge pull request #6751 from disean/nmc93cxx_rewrite
OBattler Jan 25, 2026
2df1735
NMC93cXX: Fix two warnings and a security alert.
OBattler Jan 25, 2026
abfb3a9
CL-GD 54xx: Fix the conditions for thunking to the (S)VGA read/write …
OBattler Jan 25, 2026
7de75ef
Flash chips: Make sure they have the ROM wait states, should make POS…
OBattler Jan 25, 2026
a3fbb33
Generic PCL Printer: Set language version to PCL 5C (PCL 5E is still …
OBattler Jan 26, 2026
9c27ade
Some clean up on 8514/A
TC1995 Jan 26, 2026
d63f339
Merge pull request #6757 from 86Box/TC1995
OBattler Jan 26, 2026
1d854ee
Translated using Weblate (Greek)
DimMan88 Jan 25, 2026
bd21459
Merge pull request #6758 from 86Box-chan/weblate-86box-86box
OBattler Jan 26, 2026
9b7b926
Restructure LPT devices so that lpt_device_t is now only used interna…
OBattler Jan 27, 2026
51e0e88
More LPT device sanitization, un-dev-branch the Generic PCL printer, …
OBattler Jan 27, 2026
7bbbf48
PostScript and PCL printers: Do not attempt to load the library if th…
OBattler Jan 27, 2026
2a00f72
VTech Laser Turbo XT: add older BIOS 1.08
bozoscum Jan 28, 2026
715a6cf
makes Victor V86P BIOS versions selectable
bozoscum Jan 28, 2026
d267323
Merge pull request #6760 from bozoscum/master
OBattler Jan 28, 2026
85599de
Ports Settings: Add lpt_device_available() check.
OBattler Jan 28, 2026
72ea513
Use the 808x rewrite from the 808x_rewrite branch as the NEC Vx0 rewr…
OBattler Jan 28, 2026
8b1e1ab
Bump version to 6.0, I think we have accumulated enough features to w…
OBattler Jan 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ci/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ AppDir:
- libfreetype6
- libgomp1
- libgs9
- libinstpatch-1.0-2
- libpng16-16
- libqt5core5a # if QT:BOOL=ON
- libqt5gui5 # if QT:BOOL=ON
Expand Down
42 changes: 31 additions & 11 deletions .ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
# Authors: RichardG, <richardg867@gmail.com>
#
# Copyright 2021-2023 RichardG.
# Copyright 2021-2026 RichardG.
#

#
Expand Down Expand Up @@ -334,6 +334,7 @@ toolchain_file="cmake/$toolchain.cmake"
toolchain_file_libs=

# Perform platform-specific setup.
cc_binary=gcc
strip_binary=strip
if is_windows
then
Expand Down Expand Up @@ -377,7 +378,7 @@ then
fi

# Establish general dependencies.
pkgs="git"
pkgs="git make"

# Gather installed architecture-specific packages for updating.
# This prevents outdated shared libraries, unmet dependencies
Expand Down Expand Up @@ -698,7 +699,7 @@ else
# ...and the ones we do want listed. Non-dev packages fill missing spots on the list.
libpkgs=""
longest_libpkg=0
for pkg in libc6-dev libstdc++6 libopenal-dev libfreetype6-dev libx11-dev libsdl2-dev libpng-dev librtmidi-dev qtdeclarative5-dev libwayland-dev libevdev-dev libxkbcommon-x11-dev libglib2.0-dev libslirp-dev libfaudio-dev libaudio-dev libjack-jackd2-dev libpipewire-0.3-dev libsamplerate0-dev libsndio-dev libvdeplug-dev libfluidsynth-dev libsndfile1-dev libserialport-dev
for pkg in libc6-dev libstdc++6 libopenal-dev libfreetype6-dev libx11-dev libsdl2-dev libpng-dev librtmidi-dev qtdeclarative5-dev libwayland-dev libevdev-dev libxkbcommon-x11-dev libglib2.0-dev libslirp-dev libfaudio-dev libaudio-dev libjack-jackd2-dev libpipewire-0.3-dev libsamplerate0-dev libsndio-dev libvdeplug-dev libfluidsynth-dev libsndfile1-dev libinstpatch-dev libserialport-dev
do
libpkgs="$libpkgs $pkg:$arch_deb"
length=$(echo -n $pkg | sed 's/-dev$//' | sed "s/qtdeclarative/qt/" | wc -c)
Expand Down Expand Up @@ -742,6 +743,7 @@ set(ENV{PKG_CONFIG_LIBDIR} "/usr/lib/$libdir/pkgconfig:/usr/share/$libdir/pkgcon
include("$(realpath "$toolchain_file")")
EOF
toolchain_file="$toolchain_file_new"
cc_binary="$arch_triplet-gcc"
strip_binary="$arch_triplet-strip"

# Create a separate toolchain file for library compilation without including
Expand Down Expand Up @@ -881,14 +883,14 @@ then
fi

# Download assets if we're making a release build.
git_repo=$(git remote get-url origin 2> /dev/null)
if [ "$CI" = "true" ]
then
# Backup strategy when running under Jenkins.
[ -z "$git_repo" ] && git_repo=$GIT_URL
fi
if grep -qiE "^BUILD_TYPE:[^=]+=release" build/CMakeCache.txt 2> /dev/null
then
git_repo=$(git remote get-url origin 2> /dev/null)
if [ "$CI" = "true" ]
then
# Backup strategy when running under Jenkins.
[ -z "$git_repo" ] && git_repo=$GIT_URL
fi
if [ -n "$git_repo" ]
then
echo [-] Downloading assets
Expand All @@ -905,6 +907,17 @@ then
fi
fi

# Build mdsx library.
debug_args=
grep -qiE "^CMAKE_BUILD_TYPE:[^=]+=Debug" build/CMakeCache.txt && debug_args=DEBUG=y
cd archive_tmp
git clone --depth 1 "$(dirname "$git_repo")/mdsx.git" mdsx || exit 99
make -C mdsx/src -j$(nproc) CC="$cc_binary" STRIP="$strip_binary" $debug_args || exit 99
rm -f mdsx/src/*.a
mv mdsx/src/mdsx.* . || exit 99
rm -rf mdsx
cd ..

# Archive the executable and its dependencies.
# The executable should always be archived last for the check after this block.
status=0
Expand Down Expand Up @@ -952,6 +965,9 @@ then
unzip -j "$discord_zip" "lib/$arch_discord/discord_game_sdk.dylib" -d "archive_tmp/"*".app/Contents/Frameworks"
[ ! -e "archive_tmp/"*".app/Contents/Frameworks/discord_game_sdk.dylib" ] && echo [!] No Discord Game SDK for architecture [$arch_discord]

# Archive mdsx library.
mv "archive_tmp/mdsx.dylib" "archive_tmp/"*".app/Contents/Frameworks/"

# Hack to convert x86_64 binaries to x86_64h when building that architecture.
if [ "$arch" = "x86_64h" ]
then
Expand Down Expand Up @@ -1081,7 +1097,8 @@ else
wget -qO - https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v2.3.0.tar.gz | tar zxf - -C "$cache_dir" || rm -rf "$prefix"
fi
prefix_build="$prefix/build-$arch_deb"
cmake -G Ninja -D enable-dbus=OFF -D enable-jack=OFF -D enable-oss=OFF -D enable-sdl2=OFF -D enable-pulseaudio=OFF -D enable-pipewire=OFF -D enable-alsa=OFF \
cmake -G Ninja -D enable-jack=OFF -D enable-oss=OFF -D enable-sdl2=OFF -D enable-pulseaudio=OFF -D enable-pipewire=OFF -D enable-alsa=OFF \
-D enable-aufile=OFF -D enable-dbus=OFF -D enable-network=OFF -D enable-ipv6=OFF \
-D "CMAKE_TOOLCHAIN_FILE=$toolchain_file_libs" -D "CMAKE_INSTALL_PREFIX=$cwd_root/archive_tmp/usr" \
-S "$prefix" -B "$prefix_build" || exit 99
cmake --build "$prefix_build" -j$(nproc) || exit 99
Expand Down Expand Up @@ -1136,6 +1153,9 @@ else
7z e -y -o"archive_tmp/usr/lib" "$discord_zip" "lib/$arch_discord/discord_game_sdk.so"
[ ! -e "archive_tmp/usr/lib/discord_game_sdk.so" ] && echo [!] No Discord Game SDK for architecture [$arch_discord]

# Archive mdsx library.
mv "archive_tmp/mdsx.so" "archive_tmp/usr/lib/"

# Archive readme with library package versions.
echo Libraries used to compile this $arch build of $project: > archive_tmp/README
dpkg-query -f '${Package} ${Version}\n' -W $libpkgs | sed "s/-dev / /" | sed "s/qtdeclarative/qt/" | while IFS=" " read pkg version
Expand Down Expand Up @@ -1257,7 +1277,7 @@ EOF
then
rm -rf "$cache_dir/appimage-builder-"* # remove old versions
python3 -m venv "$appimage_builder_dir" # venv to solve some Debian setuptools headaches
"$appimage_builder_dir/bin/pip" install -U "git+https://github.com/AppImageCrafters/appimage-builder.git@$appimage_builder_commit"
"$appimage_builder_dir/bin/pip" install -U "git+https://github.com/AppImageCrafters/appimage-builder.git@$appimage_builder_commit" 'setuptools<81'
fi

# Symlink appimage-builder global cache directory.
Expand Down
1 change: 1 addition & 0 deletions .ci/dependencies_msys.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ qt5-translations
vulkan-headers
libsndfile
libserialport
make
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if(MUNT_EXTERNAL)
endif()

project(86Box
VERSION 5.4
VERSION 6.0
DESCRIPTION "Emulator of x86-based systems"
HOMEPAGE_URL "https://86box.net"
LANGUAGES C CXX)
Expand Down Expand Up @@ -180,7 +180,6 @@ cmake_dependent_option(ISAMEM_RAMPAGE "AST Rampage"
cmake_dependent_option(ISAMEM_IAB "Intel Above Board" ON "DEV_BRANCH" OFF)
cmake_dependent_option(ISAMEM_BRAT "BocaRAM/AT" ON "DEV_BRANCH" OFF)
cmake_dependent_option(OPL4ML "OPL4-ML daughterboard" ON "DEV_BRANCH" OFF)
cmake_dependent_option(PCL "Generic PCL5e Printer" ON "DEV_BRANCH" OFF)
cmake_dependent_option(SIO_DETECT "Super I/O Detection Helper" ON "DEV_BRANCH" OFF)
cmake_dependent_option(WACOM "Wacom Input Devices" ON "DEV_BRANCH" OFF)
cmake_dependent_option(XL24 "ATI VGA Wonder XL24 (ATI-28800-6)" ON "DEV_BRANCH" OFF)
Expand Down
4 changes: 2 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
86box (5.4) UNRELEASED; urgency=medium
86box (6.0) UNRELEASED; urgency=medium

* Bump release.

-- Jasmine Iwanek <jriwanek@gmail.com> Tue, 23 Dec 2025 00:27:45 +0100
-- Jasmine Iwanek <jriwanek@gmail.com> Wed, 28 Jan 2026 08:45:23 +0100
18 changes: 8 additions & 10 deletions src/86box.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,12 +682,12 @@ delete_nvr_file(uint8_t flash)
extern void device_find_all_descs(void);

static void
pc_show_usage(char *s)
pc_show_usage(void)
{
char p[8192] = { 0 };

sprintf(p,
"\n%sUsage: 86box [options] [cfg-file]\n\n"
"\nUsage: 86box [options] [cfg-file]\n\n"
"Valid options are:\n\n"
"-? or --help\t\t\t- show this information\n"
"-A or --assetpath path\t\t- set 'path' to be asset path\n"
Expand Down Expand Up @@ -736,16 +736,12 @@ pc_show_usage(char *s)
"-Y or --donothing\t\t- do not show any UI or run the emulation\n"
#endif
"-Z or --lastvmpath\t\t- the last param. is VM path rather than config\n"
"\nA config file can be specified. If none is, the default file will be used.\n",
s);
"\nA config file can be specified. If none is, the default file will be used.\n");

#ifdef _WIN32
ui_msgbox(MBX_ANSI | ((s == NULL) ? MBX_INFO : MBX_WARNING), p);
ui_msgbox(MBX_ANSI | MBX_INFO, p);
#else
if (s == NULL)
always_log("%s", p);
else
ui_msgbox(MBX_ANSI | MBX_WARNING, p);
always_log("%s", p);
#endif
}

Expand Down Expand Up @@ -845,7 +841,7 @@ pc_init(int argc, char *argv[])
}
}

pc_show_usage("");
pc_show_usage();
return 0;
} else if (!strcasecmp(argv[c], "--lastvmpath") || !strcasecmp(argv[c], "-Z")) {
lvmp = 1;
Expand Down Expand Up @@ -1708,6 +1704,8 @@ pc_reset_hard_init(void)

ide_hard_reset();

lpt_ports_reset();

/* Initialize the actual machine and its basic modules. */
machine_init();

Expand Down
4 changes: 2 additions & 2 deletions src/chipset/ali1435.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ali1435_update_irqs(ali1435_t *dev, int set)
}

static void
ali1435_pci_write(int func, int addr, uint8_t val, void *priv)
ali1435_pci_write(int func, int addr, UNUSED(int len), uint8_t val, void *priv)
{
ali1435_t *dev = (ali1435_t *) priv;
int irq;
Expand Down Expand Up @@ -163,7 +163,7 @@ ali1435_pci_write(int func, int addr, uint8_t val, void *priv)
}

static uint8_t
ali1435_pci_read(int func, int addr, void *priv)
ali1435_pci_read(int func, int addr, UNUSED(int len), void *priv)
{
const ali1435_t *dev = (ali1435_t *) priv;
uint8_t ret;
Expand Down
4 changes: 2 additions & 2 deletions src/chipset/ali1489.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ ali1489_read(uint16_t addr, void *priv)
}

static void
ali1489_pci_write(UNUSED(int func), int addr, uint8_t val, void *priv)
ali1489_pci_write(UNUSED(int func), int addr, UNUSED(int len), uint8_t val, void *priv)
{
ali1489_t *dev = (ali1489_t *) priv;

Expand All @@ -434,7 +434,7 @@ ali1489_pci_write(UNUSED(int func), int addr, uint8_t val, void *priv)
}

static uint8_t
ali1489_pci_read(UNUSED(int func), int addr, void *priv)
ali1489_pci_read(UNUSED(int func), int addr, UNUSED(int len), void *priv)
{
const ali1489_t *dev = (ali1489_t *) priv;
uint8_t ret = 0xff;
Expand Down
18 changes: 9 additions & 9 deletions src/chipset/ali1531.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ ali1531_shadow_recalc(UNUSED(int cur_reg), ali1531_t *dev)
}

static void
ali1531_write(UNUSED(int func), int addr, uint8_t val, void *priv)
ali1531_write(UNUSED(int func), int addr, UNUSED(int len), uint8_t val, void *priv)
{
ali1531_t *dev = (ali1531_t *) priv;

Expand Down Expand Up @@ -298,7 +298,7 @@ ali1531_write(UNUSED(int func), int addr, uint8_t val, void *priv)
}

static uint8_t
ali1531_read(UNUSED(int func), int addr, void *priv)
ali1531_read(UNUSED(int func), int addr, UNUSED(int len), void *priv)
{
const ali1531_t *dev = (ali1531_t *) priv;
uint8_t ret = 0xff;
Expand Down Expand Up @@ -341,18 +341,18 @@ ali1531_reset(void *priv)
dev->pci_conf[0x5a] = 0x20;
dev->pci_conf[0x70] = 0x22;

ali1531_write(0, 0x42, 0x00, dev);
ali1531_write(0, 0x43, 0x00, dev);
ali1531_write(0, 0x42, 1, 0x00, dev);
ali1531_write(0, 0x43, 1, 0x00, dev);

ali1531_write(0, 0x47, 0x00, dev);
ali1531_write(0, 0x48, 0x00, dev);
ali1531_write(0, 0x47, 1, 0x00, dev);
ali1531_write(0, 0x48, 1, 0x00, dev);

for (uint8_t i = 0; i < 4; i++)
ali1531_write(0, 0x4c + i, 0x00, dev);
ali1531_write(0, 0x4c + i, 1, 0x00, dev);

for (uint8_t i = 0; i < 16; i += 2) {
ali1531_write(0, 0x60 + i, 0x08, dev);
ali1531_write(0, 0x61 + i, 0x40, dev);
ali1531_write(0, 0x60 + i, 1, 0x08, dev);
ali1531_write(0, 0x61 + i, 1, 0x40, dev);
}
}

Expand Down
20 changes: 10 additions & 10 deletions src/chipset/ali1541.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ ali1541_mask_bar(ali1541_t *dev)
}

static void
ali1541_write(UNUSED(int func), int addr, uint8_t val, void *priv)
ali1541_write(UNUSED(int func), int addr, UNUSED(int len), uint8_t val, void *priv)
{
ali1541_t *dev = (ali1541_t *) priv;

Expand Down Expand Up @@ -562,7 +562,7 @@ ali1541_write(UNUSED(int func), int addr, uint8_t val, void *priv)
}

static uint8_t
ali1541_read(UNUSED(int func), int addr, void *priv)
ali1541_read(UNUSED(int func), int addr, UNUSED(int len), void *priv)
{
const ali1541_t *dev = (ali1541_t *) priv;
uint8_t ret = 0xff;
Expand Down Expand Up @@ -613,20 +613,20 @@ ali1541_reset(void *priv)
dev->pci_conf[0xe0] = 0x01;

cpu_cache_int_enabled = 1;
ali1541_write(0, 0x42, 0x00, dev);
ali1541_write(0, 0x42, 1, 0x00, dev);

ali1541_write(0, 0x54, 0x00, dev);
ali1541_write(0, 0x55, 0x00, dev);
ali1541_write(0, 0x54, 1, 0x00, dev);
ali1541_write(0, 0x55, 1, 0x00, dev);

for (uint8_t i = 0; i < 4; i++)
ali1541_write(0, 0x56 + i, 0x00, dev);
ali1541_write(0, 0x56 + i, 1, 0x00, dev);

ali1541_write(0, 0x60, 0x07, dev);
ali1541_write(0, 0x61, 0x40, dev);
ali1541_write(0, 0x60, 1, 0x07, dev);
ali1541_write(0, 0x61, 1, 0x40, dev);

for (uint8_t i = 0; i < 14; i += 2) {
ali1541_write(0, 0x62 + i, 0x00, dev);
ali1541_write(0, 0x63 + i, 0x00, dev);
ali1541_write(0, 0x62 + i, 1, 0x00, dev);
ali1541_write(0, 0x63 + i, 1, 0x00, dev);
}
}

Expand Down
Loading
Loading