I made an ARM64 build of dosbox-core:
https://github.com/realnc/dosbox-core/releases/tag/latest_build_linux_arm
I don't actually know if it runs, since I don't have an ARM machine. In theory, it should run fine on RPi 4 since it's built on arm64v8 Ubuntu 16.04.