I'm proud to present CPCemu 2.0 having the following new features:
- Runs on MacOS, Android, Linux (x86_64 and ARM, in particular on Raspberry Pi), Windows and iOS (unfortunately not for the public).
- Graphics engine overhauled, introducing border, full overscan, dynamic horizontal synchronisation (not perfect yet), scan doubling and some optional CRT blurring
- Completely new CRTC emulation, quite accurate, and selectable between CRTC types 0, 1 and 2 (most demos work)
- Realistic timing of CPU instructions and interrupts
- Sound emulation significantly improved, now able to play digitized sounds (such as speech and special effects)
- Different accelerated modes of operation ("Turbo", with and without CRTC synchronisation)
- Debugger with optional CRTC single-stepping alongside the CPC screen, including crosshairs indicating the current electron beam position
- Graphical menu (in addition to function keys)
- Virtual on-screen joystick on Android and iOS
- Many small improvements
Download it at https://cpc-emu.org/download.html (https://cpc-emu.org/download.html)!
Thanks to Marco Vieth for testing!
(https://cpc-emu.org/Voyage93.png) (https://cpc-emu.org/Madness.png) (https://cpc-emu.org/FromScratchx.png)
the emulator is very fast, great job!
Interface takes a bit to get used to, but everything seems to be ok :)
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040) , I cannot start it on MacOS 10.15.7 Catalina because a problem with dependency hidapi:
QuoteCPCemuMacOS.app/Contents/MacOS/CPCemuMacOS
dyld: Library not loaded: @rpath/hidapi.framework/Versions/A/hidapi
Referenced from: /Users/robcfg/Downloads/CPCemuMacOS.app/Contents/Frameworks/SDL2.framework/Versions/A/SDL2
Reason: no suitable image found. Did find:
/Users/robcfg/Downloads/CPCemuMacOS.app/Contents/Frameworks/SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/hidapi: code signature in (/Users/robcfg/Downloads/CPCemuMacOS.app/Contents/Frameworks/SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/hidapi) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs
Ouch. Thank you, robcfg. I found the reason. I activated the "hardened runtime" and have not tested after that. It needs an exception for loading dependencies signed by someone else. I'm sorry.
Please download again.
It now works!
Thanks a lot!
Looks very interesting. I just noticed the Close button didn't work when the debugger was opened (on Windows).
Do you have plan to improve the UI of the debugger to have for example, floating windows that can be moved, edited in a more user friendly manner? Many of us are still looking for the successor of Winape's venerable debugger :). Especially on Linux!!
Wow, the venerable CPCemu is back ;)
On a side note I'm super happy of all those emulators coming out in the last 5 years.
2 questions:
- I see you distribute your program as freeware (good !), but it remains closed-source. Is there a chance in the future you make it open-source ? (not open in the sense "everyone can contribute", but open in the sense "I can fetch the source-code from a git repo and compile it on my Linux machine").
- Do you have plans for AmstradPlus / GX-4000 support ?
Congrats, and welcome back into the emulator arena :)
@roudoudou (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1714): Thank you! If you have enough speed you can switch the "Video" setting to "1" to get a more realistic (more analogue :) ) display. You have to get used to it, because it is darker than the default, but I prefer it over the clumsy default display.
@Targhan (https://www.cpcwiki.eu/forum/index.php?action=profile;u=110): The debugger definitely needs improvement in terms of bugs of already present features. On the other hand, I'm not sure that using the mouse is more comfortable than typing short commands (but, I see that window size matters). Unfortunately, I have never seen WinApe. Which separate windows would be needed? What entities would need to be edited in there? I'm working on the close button...
@norecess (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2409): I think CPCemu is going to be open source in the long run. Currently, the code is more than untidy in many places. I need to clean this up first. Besides, I have the ambition to make perfect CRTC emulation before opening the source code. I don't have a clue of the Plus CPCs and the GX-4000. I won't be able to accurately emulate the CRTCs and the rest if I cannot examine their real behaviour. I have been looking into eBay for one, but the prices are ridiculous. So, chances are very low.
Speaking of CRTC emulation accuracy, this has been my primary objective while working on the current release for the last five years. I was hoping for some comments on that, to be honest. I'm really proud that certain demos (e. g., From Scratch, Madness by Gozeur and the Futurs and Vanity parts of the 30 Years Megademo on CRTC type 1, and S&KOH, DemoIzArt, Face Hugger Megademo and Voyage 93 on CRTC type 0) work very well (if not even perfect, at least some of them). I'm still working on the remaining flaws. I would be happy about any reports on demos (or other software) not working correctly. I know that dynamic HSYNCs result in damaged screens sometimes (e. g., in two parts of Dream End, in Scroll Factory and in one part of The Demo). This is really annoying to cope with. Not even my real CPC monitor is able to display these parts of Dream End, for example.
Ah, just in this minute I found the long-wanted reason why the scroller of the Benediction part of the 30YMD is deformed. So, no need to report this any more.
Ah, reading my latest post again, I found an ambiguous statement. I should have written "So, chances are very low for Plus or GX support."
This is not a statement about the chances of opening the sources.
Quote from: Emu on 00:39, 12 January 21The debugger definitely needs improvement in terms of bugs of already present features. On the other hand, I'm not sure that using the mouse is more comfortable than typing short commands (but, I see that window size matters). Unfortunately, I have never seen WinApe. Which separate windows would be needed? What entities would need to be edited in there? I'm working on the close button.
You could separate the monitor in a window, the disassembler in another, etc. Both mouse and shortcut should be usable, I personally use both. On my 21" screen, the debugger appears "beyond" the limits of my screen, I have to resize the whole to see the debugger. Most of the times, when debugging, you don't really need to see the CPC screen, but this can still be useful. Hence the floating windows, you can move them. UI is such a hard work, I won't argue with that :).
Now works in new GNU/Linux distros in PC as Ubuntu Mate 20.04 and Android.But I can't run in raspberry pi 400 with 64 bit Raspberry Pi OS I get this error:./cpcemu: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory[code]./cpcemu: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
The system have installed these packages:libsdl2-2.0-0:arm64
libsdl2-dev
The command "uname -a" show this information:
Linux raspberrypi400 5.10.5-v8+ #1391 SMP PREEMPT Thu Jan 7 17:55:54 GMT 2021 aarch64 GNU/Linux
CPCemu for the Raspberry is 32-bit-only to keep maximum compatibility (yes, I can hear norecess clearing his throat). You need to install the 32-bit libraries.
I have not tried 64 bit Raspberry Pi OS, yet, but the following should help:
sudo dpkg --add-architecture armhf
Have you actually tried the Android version? Does it work for you? Unfortunately, I have only one Android device to test...
Android version runs very fine, only keyboard hide a small part of the botton of the screen and you need a real gamepad to use joystick games.
(https://i.ibb.co/pX7zQfN/Screenshot-2021-01-17-23-06-47-016-com-loritznet-softwarecreations-cpcemu.jpg)
I try in Lineage OS in Raspberry Pi 400 and in a Xiaomi Red Mi Note 7 with success.
Thanks for the screenshot, that's helpful. Actually, CPCemu ought to be in landscape orientation all the time. It's an interesting side effect of portrait orientation that there is enough space left for the keyboard. Now I have to figure out how I can move the CPC screen up (as I requested a full screen display and got only a part of it). I cannot promise that this is possible, but I'm going to think it over.
Regarding the joystick, there is one in the bottom right corner of the screen. You just have to hide the keyboard before, e g. by tapping in the upper half of the screen (twice to hide the main menu buttons again). Then, if you tap in the corner a joystick icon should appear in the CPC screen and you should be able to move your joystick and tap the fire button (in the bottom left corner of the screen).
I forgot to ask: Have you managed to run CPCemu on the Raspberry?
Only a few seconds ago I saw the last line of your post below the screenshot. So, CPCemu runs on your Raspberry Pi 400 64 Bit? Or has Lineage OS been an alternative try because Rasberry Pi OS didn't work?
I tried it on a Raspberry Pi 1 model B+ and it worked albeit incredibly slow.
Quote from: Emu on 22:56, 19 January 21
I forgot to ask: Have you managed to run CPCemu on the Raspberry?
I try to run added the armhf architecture and the libraries the emulator ask to me with the comands:
sudo dpkg --add-architecture armhf
sudo apt -y install libsdl2-2.0-0:armhf libstdc++6:armhf
But I get this error and I don't know whitch library is the next to install
. /cpcemu: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory
If I get to run I made an instalation script.
I also try in an older raspberry pi 2 with raspbian 32 bits and runs... but slow.
I have a big problem to load another dsk with Android version, I don't know where I must put the files.
Tried this on my S8+, works like a charm.
Stupid question, how do I rotate the screen?
Now, I finally try with Raspberry Pi OS 32 bits in my raspberry pi 400 and runs OK and with a decent speed.
Quote from: CPCBEGIN on 10:05, 23 January 21
Now, I finally try with Raspberry Pi OS 32 bits in my raspberry pi 400 and runs OK and with a decent speed.
Does the sound work for you ? I also tried on RPI OS 32Bit on my Pi400 and the sound is distorted :(
Seems to kill my boxes but they are ok (check after testing) ...
There is a new release 2.1 of CPCemu. You can find it here: https://cpc-emu.org/download.html (https://cpc-emu.org/download.html)
I have fixed many of the problems mentioned above and some more. There are also new features:
- Available also for Linux-x86 (32 Bit). A 64 bit version for the Raspberry Pi will follow.
- Further features of CRTC (types 0 and 1) and Gate Array implemented, e. g. behaviour of register 6 (it took me literally years to solve this mystery), and, of course, the colours. The old DOS colours where rather pale.
- User interface improved: text size on Android and iOS increased, rotation bug fixed, the file open dialog displays the path where the DSK files are stored; Drag & Drop of DSK files on Windows, MacOS and Linux to open a DSK
- The versions for Android and iOS accept shared DSK and ZIP files from other applications (e. g. downloads from the browser)
- Further features of the disk controller (FDC) implemented (Orion Prime in the 4 disk version loads correctly now)
- Smaller improvements (e. g. autostart, green monitor, cassette relay)
Thanks to Sven B. for impressively pointing me towards the wrong colours. Looking at the new colours, I fell in love with CPCemu, again.
Ah thanks for the update :)
On my phone key repetition is pretty quick to kick in, I always end up typing "caatt" :D
CPCEmu 2.1 doesn't work in lastest Ubuntu LTS :(
cpcbegin@i7:/opt/linuxemus/cpcemu-2.1$ ./cpcemu
./cpcemu: /lib/x86_64-linux-gnu/libSDL2-2.0.so.0: no version information available (required by ./cpcemu)
./cpcemu: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./cpcemu)
And no idea to load an external dsk in new android version. :(
@Gryzor (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1): Are you really using realtime emulation? Are you using the on-screen keyboard?
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): I still have to look into the Ubunto problem. Have you tried version 2.0 on Ubuntu? Did it work? Regarding DSK on Android: You have to press the third icon (disk symbol) in the main menu and then the first item in the next window. If by "external" you mean other DSK files than those included with CPCemu then please look at the path below the DSK selection window (inside the red border). You have to copy the DSKs to this directory. Easier than copying DSK files manually is to download them in the Android browser and share them with CPCemu. This works also with ZIP files, but then there will be no autostart.
Quote from: Emu on 09:16, 24 February 21@Gryzor: Are you really using realtime emulation? Are you using the on-screen keyboard?
Not sure what "realtime emulation" and "on-screen keyboard" are. I tap on the screen, the default Android keyboard comes up, I type.
Ubuntu Mate 20.04
CPCEmu 2.0 runs OK (https://www.youtube.com/watch?v=7ujqvVJGquY) but 2.1 falls, I check that I have the required library and the file exists in the right path:
/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
Android
- I try using the 3rd button but I can't exit from emulator path
- I also try to copy the dsk in the folder but I can't find the path
- I try also to open the dsk with a file explorer and open with CPCEmu, open the emulator but says than can't find the file.
Do I need to be root to use the emulator? Do I need special privileges?
I try with my mobile, a Xiaomi Red Mi Note 7, a raspberry pi 400 with Lineage and an Android TV.
Ok:
@Gryzor (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1): So, you are using the on-screen keyboard, yes. It's strange that there are multiple keystrokes possible from it at all. I have to try it with other devices myself. What's your Android version? Anyway, you can switch CPCemu between realtime mode and turbo mode by the second button of the main menu (or F2 on desktop systems). Chances are high that you press it by accident on your small display when trying to press the third one (intending to open a DSK). I'm still working on a modified main menu with larger icons arranged differently. Besides, I've found that the initial language selection is still not zoomed, this I will be correct.
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): The reason for the Ubuntu errors is that you need to update your system. Your libraries are too old. But, I admit, it would be better to compile CPCemu on an older system to avoid such problems. I will do so next time. Regarding Android: No, no root privileges required, of course. Actually, you should be able to exit the emulator path. Which Android version are you using? Can you post a screen shot of the open-file window (the one with the red bordered window at the bottom) and a screen shot of the error message when sharing a DSK file from the explorer?
Hi Folks,
Just downloaded 2.1 to try on my Windows 10 64bit PC.
cpcemu_setup-win32-x86-2.1.exe 3.2 MB Software and manuals all-in-one
The program installs OK but when I try to run the 464, 664 or 6128 the CPCemu window comes up blank and then closes after a few seconds.
Any ideas?
Many thanks
Paddy
UK
Quote from: Emu on 09:43, 25 February 21
I will do so next time. Regarding Android: No, no root privileges required, of course. Actually, you should be able to exit the emulator path. Which Android version are you using? Can you post a screen shot of the open-file window (the one with the red bordered window at the bottom) and a screen shot of the error message when sharing a DSK file from the explorer?
I'm using Android 10.QKQ1.190910.002, you can see in this video (https://www.youtube.com/watch?v=2_B9oxOQM_E) than it can't exit to emulator path, when in clic in deepest .. i return to CPCEmu's DSK folder.
In this other video you can see what happends if I try to load a dsk with the emulator (https://www.youtube.com/watch?v=ZkzFXxOYTYg).
Quote from: Emu on 09:43, 25 February 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): The reason for the Ubuntu errors is that you need to update your system. Your libraries are too old. But, I admit, it would be better to compile CPCemu on an older system to avoid such problems.
I have Ubuntu 20.04 Mate, this is the LASTEST LTS avalaible, this is not old, newer versions are experimental.
Do you consider to compile incluiding the libraries in the binary (like RetroVirtualMachine (https://www.retrovirtualmachine.org/) by example)?
You might save a lot of problems with too old or too new Ubuntu versions and CPCEmu will run is a lot of more GNU/Linux distros.
Thanks for your work!
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472):
Ubuntu: Yes, your Ubuntu system is the latest version, but nevertheless there are updates with newer versions of the applications and the libraries. In particular, GLIBC version 2.33 has been released recently and is not yet in your system. So, please try an update as described by https://itsfoss.com/update-ubuntu/ (https://itsfoss.com/update-ubuntu/), e. g., by:
sudo apt update && sudo apt upgrade -y
Compiling with statically linking libraries is a bad idea from a security point of view (among others). As I already mentioned, I will intentionally compile with older dynamic libraries in the next release. This is the only reasonable way.
Android: Thank you for the videos. Looks like a security issue. Are you installing apps to an SD card or to the internal flash memory?
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859):
Please open a command line window ("CMD", aka DOS window), browse to the CPCemu installation folder and execute
cpcemu > %TEMP%\cpcemu.txt
to redirect the text output into the given file. Then please post the content of this file.
Do you have an opportunity to test version 2.0?
Quote from: Emu on 01:11, 26 February 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472):
Android: Thank you for the videos. Looks like a security issue. Are you installing apps to an SD card or to the internal flash memory?
I download the apk install like any apk, of course, I need to allow install from others.
The DSK are also un the internal memory.
Quote from: Emu on 01:11, 26 February 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859):
Please open a command line window ("CMD", aka DOS window), browse to the CPCemu installation folder and execute
cpcemu > %TEMP%\cpcemu.txt
to redirect the text output into the given file. Then please post the content of this file.
Do you have an opportunity to test version 2.0?
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
Just tried the above and all the text file contains is as follows:
CPCEMU (v2.1) - The CPC Emulator (c) Marco Vieth & Rainer Loritz 2002-2021 -- all rights reserved --I will now try 2.0 and report back.
Kind regards
PaddyUK
Quote from: Emu on 01:11, 26 February 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859):
Please open a command line window ("CMD", aka DOS window), browse to the CPCemu installation folder and execute
cpcemu > %TEMP%\cpcemu.txt
to redirect the text output into the given file. Then please post the content of this file.
Do you have an opportunity to test version 2.0?
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
I tried the same thing with version 2.0 and this time the text file is completely blank.
Hope this helps.
Kind regards
PaddyUK
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): I found the behaviour you documented (default folder "./DISC", no browsing more than one level above) only immediately after installation of CPCemu during the very first run. Please try to stop CPCemu completely by removing it from Android's open app list. I assume that when you run it again the folders will work. Can you check this? If this turns out to be the case I will try to fix it in the next release.
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859): Unfortunately, I have not had any luck with your problem, yet. The output log is particular strange without any errors. Can you please try to delete or at least rename %APPDATA%\CPCemu and run CPCemu again? Is there any noticable difference?
@SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124): Today, I tried CPCemu on a Pi 400 and found a disgusting noise instead of CPC sound. Apparently, the audio sample rate must be 48 kHz on the Pi 400. This will be implemented in the next release. By the way, if anyone suffers from delayed sound on a Pi, try to change your screen resolution (!) to the default values of your monitor.
Android version cpcemu 2.1
Quote from: Emu on 01:18, 27 February 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): I found the behaviour you documented (default folder "./DISC", no browsing more than one level above) only immediately after installation of CPCemu during the very first run. Please try to stop CPCemu completely by removing it from Android's open app list. I assume that when you run it again the folders will work. Can you check this? If this turns out to be the case I will try to fix it in the next release.
Hi, it doesn't work.
The path begins in "/data/data/com.loritznet.softwarecreations.cpcemu/files/DISC" and when the levels are raised to the root / it only indicates "/ ../".
Quote from: Emu on 01:18, 27 February 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): I found the behaviour you documented (default folder "./DISC", no browsing more than one level above) only immediately after installation of CPCemu during the very first run. Please try to stop CPCemu completely by removing it from Android's open app list. I assume that when you run it again the folders will work. Can you check this? If this turns out to be the case I will try to fix it in the next release.
I always close CPCEmu before run again, if I don't do and I launch this I can not open the top icons, sometimes the emulator hangs.
By the way, here you are a screenshot with the permissions for CPCEmu.
Quote from: Emu on 01:18, 27 February 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859): Unfortunately, I have not had any luck with your problem, yet. The output log is particular strange without any errors. Can you please try to delete or at least rename %APPDATA%\CPCemu and run CPCemu again? Is there any noticable difference?
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
Thank you for your response. I tried to rename the
%APPDATA%\CPCemu folder but the OS states it is in use by another program. The full expanded path is:
Users\Paddy\AppData\Roaming\CPCemuI did try to do this from an Administrator command prompt as well.
Does this help?
Kind regards
PaddyUK
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) , @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I think I now understand what the two of you are trying to do. You want to browse to the folder of some other app to open a DSK file from there. Unfortunately, such operation is not allowed by Android. You will need either to share DSK files with CPCemu from those other apps (which will copy them to the DISC folder of CPCemu) or to copy the DSK files to the DISC folder of CPCemu yourself somehow.
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for testing. I think the reason for the crash is exactly that some process locks one or more files in this CPCemu folder. I assume that if you find the culprit (maybe a CPCemu zombie process?), kill it and then delete the folder then the next start of CPCemu will work. Can you delete the folder directly after a reboot?
Quote from: Emu on 23:58, 28 February 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) , @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I think I now understand what the two of you are trying to do. You want to browse to the folder of some other app to open a DSK file from there. Unfortunately, such operation is not allowed by Android. You will need either to share DSK files with CPCemu from those other apps (which will copy them to the DISC folder of CPCemu) or to copy the DSK files to the DISC folder of CPCemu yourself somehow.
NO, this was the Plan C, I try first to load from CPCEmu and try to find the path where I must to copy the DSK without success.
Can you make a video how to load dsk in the emulator? There is a lot of people can't load them.
You can use an app to capture video on Android or ScreenScream than show phone screen on PC and save with OBS Studio or Vokoscreen by example.
Got the same problem here, seems the path is /DATA/DATA/COM.LORITZNET.SOFTWARECREATIONS.CPCEMU/FILES/DISC/ but I cannot find this path on my entire phone, there isn't even a DATA Folder in Root, only DATA Folder is in ANDROID, but thats it
Even tried to search for hidden files/folders, no joy .....
Quote from: Emu on 23:58, 28 February 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for testing. I think the reason for the crash is exactly that some process locks one or more files in this CPCemu folder. I assume that if you find the culprit (maybe a CPCemu zombie process?), kill it and then delete the folder then the next start of CPCemu will work. Can you delete the folder directly after a reboot?
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
Rebooted and renamed the folder. I tried starting CPCemu from the command line with redirection to a text file and got the same as before with 2.1:
CPCEMU (v2.0) - The CPC Emulator(c) Marco Vieth & Rainer Loritz 2002-2021 -- all rights reserved --If I delete the folder, then CPCemu recreates the folder but still crashes.
Does this help?
Kind regards
PaddyUK
Quote from: Emu on 23:58, 28 February 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) , @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I think I now understand what the two of you are trying to do. You want to browse to the folder of some other app to open a DSK file from there. Unfortunately, such operation is not allowed by Android. You will need either to share DSK files with CPCemu from those other apps (which will copy them to the DISC folder of CPCemu) or to copy the DSK files to the DISC folder of CPCemu yourself somehow.
Indeed, but in order to copy dsk's to the DISC directory, root permissions are required because the program is installed in a protected directory.
Is it not possible that the program allows to choose the dsk's files from the "sdcard" folder?
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) , @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : Thank you for not giving up! You are right, this is indeed a security issue of Android. I've been working on it for a few days and came to a similar conclusion as Livingstone. The files need to be stored in what Android calls "external storage" (not necessarily an SD card, there is also "primary external storage" in the integrated flash memory). I'm sorry that I didn't find this problem myself. The modified version is already working. I hope to release it soon.
But still one question: Have you tried to share a DSK file with CPCemu from your file explorer or your browser? This has always worked for me, yet.
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859): I'm sorry, but I don't have any improvements in your case. I will create a special cpcemu.exe file that reports after each of the first commands. So you will be able to tell me where it stops. It's a strange thing as normally CPCemu outputs reasonable error messages.
Quote from: Emu on 09:19, 03 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859): I'm sorry, but I don't have any improvements in your case. I will create a special cpcemu.exe file that reports after each of the first commands. So you will be able to tell me where it stops. It's a strange thing as normally CPCemu outputs reasonable error messages.
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
I would be happy to help in testing. To my knowledge, this PC is not unusual in any way (famous last words!)...
ThinkPad E460 Laptop
Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
16.0 GB RAM
512GB Samsung 860 PRO SSD
Windows 10 Home, 20H2, 19042.844
It does have an AMD Radeon R7 M360 dedicated graphics card onboard - should that make any difference?
Kind regards
PaddyUK
Quote from: Emu on 09:19, 03 March 21
But still one question: Have you tried to share a DSK file with CPCemu from your file explorer or your browser? This has always worked for me, yet.
Silly question : How should I do that ? If I "share" a DSK file it can only be send by whatsapp or bluetooth or something like that, no way to share it with CPCEmu ?!?
Quote from: Emu on 09:19, 03 March 21
But still one question: Have you tried to share a DSK file with CPCemu from your file explorer or your browser? This has always worked for me, yet.
Yes, but when I share a DSK from my file explorer my phone doesn't offer me CPCEmu, only Telegram, Whatsapp, etc...
How can you get to share this files with CPCEmu?
Don't care about this, we try your new version, this is the process to fix software with betatesters ;)
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Here are some questions that I should have asked you two weeks ago:
- To which folder have you installed CPCemu? Is it %PROGRAMFILES(X86)%\CPCEMU-2.1?
- When starting CPCemu, are you asked for a language?
- What is the content of %APPDATA%\CPCemu after you started CPCemu? Is it empty?
- After you start CPCemu from CMD with "cpcemu > log.txt 2>&1" (the last part is important, there are no spaces between 2 and 1), what's in "log.txt"?
I've just released version 2.2 with the following features:
- Setup option to use arrow keys as joystick (Thanks to @Ythcal (https://www.cpcwiki.eu/forum/index.php?action=profile;u=79) for the proposal!)
- Main menu rearranged and size increased for small screens (Android, iOS)
- Better output in CRT-monitor mode ("Video mode=1", including better window behaviour for desktop versions)
- Better emulation of the HSYNC signals ("blacker than black", relevant for some demos as Dreamend and Camembert 4)
- Fixed errors: Folder sharing on Android, sound output, poke database (Android, iOS)
Download available at: https://cpc-emu.org/download.html
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) , @SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124) : Please check the folder sharing on Android, again. Unfortunately, there is a similar problem on iOS, which I have not been able to solve, yet.
Hello,
Juste something about the 3 dsks you provide in the archive :
Batman Forever (Disk 1 side A).dsk , etC.
It seems to have been generated with "Arnold".
The track number (after "Track-Info") seems not good...
for track 00 it is ok but
for track 01 it is not good :
see at #1400
at #1410 the track number is wrong = #02
it should be #01 !
then for others tracks, the track number are real track number * 2 = #04, #06, ..., #52 !!!
compare also with the C (cylinder number of the sector id) which is good in this files !
but in fact, it could be different (for some rares disk protections), so we can not take the C from the sector id and correct the track number.. the file is wrong !
compare with the correct dsk on cpc-power.com if you need an example of good dsk !
Also, congratulations for the improvement of your emulator !
I don't have a clue where I got these DSKs from. I will use the correct ones in the next release.
How did you notice?
this was luck !
I just tried the dsk in my own cpc emulator and found something wrong when I started the demo !
Then I found where was the error...
Quote from: Emu on 15:32, 13 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Here are some questions that I should have asked you two weeks ago:
- To which folder have you installed CPCemu? Is it %PROGRAMFILES(X86)%\CPCEMU-2.1?
- When starting CPCemu, are you asked for a language?
- What is the content of %APPDATA%\CPCemu after you started CPCemu? Is it empty?
- After you start CPCemu from CMD with "cpcemu > log.txt 2>&1" (the last part is important, there are no spaces between 2 and 1), what's in "log.txt"?
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
Thank you for your reply. I just installed 2.2 and tried it (just in case) but alas I get the same result.
The answers to your questions:
To which folder have you installed CPCemu? Is it %PROGRAMFILES(X86)%\CPCEMU-2.1?"C:\Program Files (x86)\CPCEMU-2.1\"When starting CPCemu, are you asked for a language?NoWhat is the content of %APPDATA%\CPCemu after you started CPCemu? Is it empty?It is emptyAfter you start CPCemu from CMD with "cpcemu > log.txt 2>&1" (the last part is important, there are no spaces between 2 and 1), what's in "log.txt"? CPCEMU (v2.2) - The CPC Emulator
(c) Marco Vieth & Rainer Loritz
2002-2021
-- all rights reserved --
Does this help?
Many thanks
PaddyUK
I try new CPCEmu 2.2 and all linux versions runs very fine in:
- x86-64: in my i7.
- x84: in an old pentium 4.
- arm: in my raspberry pi 400 with raspberry pi OS.
But I still can't load external dsk in android version, now I see the complete path but when I try to switch to a external folder I can't see anything in it.
Also, if I close and open the emulator in android, sometimes hangs or doesn't show the action icons.
Now version 2.2 for android does not install, :'(
what is the minimum version of Android?
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : Can you browse to the files of CPCemu with your file explorer app? Can you share DSK files from your browser?
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : There is now a test version available for download: https://cpc-emu.org/Release/2021-03-14/cpcemu_setup_checkpoints_v1-win32-x86-2.2.exe (https://cpc-emu.org/Release/2021-03-14/cpcemu_setup_checkpoints_v1-win32-x86-2.2.exe). Please install it as usual and start CPCemu. It should display checkpoints. Please report the maximum checkpoint reached. We will do the same thing for the subroutine following this checkpoint with sub-checkpoints.
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : Please try to uninstall CPCemu before installing the new one (drag it into the trash can). Does this help? Up to which point does it work? Not at all? Are you asked for a language at least?
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I just tested browsing on an Android 5.0 tablet - it works. Then, I looked into the Android documentation and found that there is a special privilege required for browsing starting from a certain Android version (apparently, 6 or 7). However, this special privilege should be used only if the core function of the app is file handling, which is not the case for CPCemu.
As I am going to publish CPCemu in the play store, I won't be able to require this special privilege. My only option would be to require it only for the APK downloaded from my website, so I would have to build two different versions. The question is if the browsing feature is that important.
I assume that both sharing and using a file explorer would be enough for most users. What is your opinion?
Quote from: Emu on 22:30, 18 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : There is now a test version available for download: https://cpc-emu.org/Release/2021-03-14/cpcemu_setup_checkpoints_v1-win32-x86-2.2.exe (https://cpc-emu.org/Release/2021-03-14/cpcemu_setup_checkpoints_v1-win32-x86-2.2.exe). Please install it as usual and start CPCemu. It should display checkpoints. Please report the maximum checkpoint reached. We will do the same thing for the subroutine following this checkpoint with sub-checkpoints.
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
Thank you for this. I have installed your debug version and when I select the CPC128 option, it gets to checkpoint 8. I also tried the CPC464 option and it gets to the same check point also.
Hope this helps.
PaddyUK
Quote from: Emu on 22:30, 18 March 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : Please try to uninstall CPCemu before installing the new one (drag it into the trash can). Does this help? Up to which point does it work? Not at all? Are you asked for a language at least?
I have not been able to install version 2.2 with your instructions.
I have a table with Android version 5.1.1.
The only version of cpcemu that I can install is up to 2.1.
:(
:( :( :( :( :( :(
@Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
New Version installs fine on Android 10 Phone and now I can go to file browser and do an "Open with" and then CPC-EMU is present in the list, that works so far ... but I really think it would be better (like other emulators) to let you define a "Roms" folder (or disk maybe) where you can put all your DSK files and open it from disc menu inside the emulator, this would be less confusing ...
P.S : does the Arm Version now run on 64 Bit (just a quick question before I test) ?
Quote from: Emu on 22:58, 18 March 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I just tested browsing on an Android 5.0 tablet - it works. Then, I looked into the Android documentation and found that there is a special privilege required for browsing starting from a certain Android version (apparently, 6 or 7). However, this special privilege should be used only if the core function of the app is file handling, which is not the case for CPCemu.
As I am going to publish CPCemu in the play store, I won't be able to require this special privilege. My only option would be to require it only for the APK downloaded from my website, so I would have to build two different versions. The question is if the browsing feature is that important.
I assume that both sharing and using a file explorer would be enough for most users. What is your opinion?
I think that most new devices use around Android 10 and we can load dsk friendly is essential.
You can ask to other authors of emulator how they solve this problem.
I'd wait to solve this problem and the hangs when you open the emulator again before publish in Play Store.
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for testing. Apparently, the issue is connected to the window creation. Are you sure you entered "2>&1" when creating the log file? Anyway, please find the next iteration here and report the result: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip)
@SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124) : There is a folder "DISC" where you can put your DSK files (or ZIPs). You should see its location below the "Insert Disc" window in the red border. Ah, perhaps it's out of the visible area if you have a small screen, I will check that. But I agree, it would be nice to have a menu item that opens some kind of file explorer. I have to check if there is some kind of "default application" for file browsing on Android. I've never heard of such a thing.
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : I found the problem, but not the exact reason. It has to do with the CRT emulation (video mode=1) if you have a screen with less than about 1000 pixels in the vertical direction, but I don't understand why it happens at the very first start where "video mode" is 0 by default. So, I've added a check for the screen resolution. I hope this will work for you: https://cpc-emu.org/Release/2021-03-14/cpcemu-android-multicpu-2.2.1.apk (https://cpc-emu.org/Release/2021-03-14/cpcemu-android-multicpu-2.2.1.apk)
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I think I won't be able to request the file browsing privilege. But perhaps the idea of SkulleateR is the next best thing (make the file explorer pop up from CPCemu with the DISC folder). If this is not possible on Android, we need to fall back to browsing to the DISC folder manually. I think one can set a bookmark there to find it again faster. But, of course, CPCemu must display the location of the folder. I will check this. Regarding the hangs: How can I reproduce them? Is CPCemu in a certain state when they occur, e. g. in the main menu or in an open window?
Quote from: Emu on 22:00, 19 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for testing. Apparently, the issue is connected to the window creation. Are you sure you entered "2>&1" when creating the log file? Anyway, please find the next iteration here and report the result: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip)
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
Thank you for your reply. I have just run the above EXE and get a dialog box stating...
cpcemu.exe - System ErrorThe code execution cannot proceed because SDL2.DLL wasnot found. Reinstalling the program may fix this problem.Hope this helps.
Kind regards
PaddyUK
Quote from: Emu on 22:00, 19 March 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : I found the problem, but not the exact reason. It has to do with the CRT emulation (video mode=1) if you have a screen with less than about 1000 pixels in the vertical direction, but I don't understand why it happens at the very first start where "video mode" is 0 by default. So, I've added a check for the screen resolution. I hope this will work for you: https://cpc-emu.org/Release/2021-03-14/cpcemu-android-multicpu-2.2.1.apk (https://cpc-emu.org/Release/2021-03-14/cpcemu-android-multicpu-2.2.1.apk)
Hi first, thank you for fighting to find a solution.
I think because of the compilation I can't run the APK installation package
With version 2.1 there is no problem, but with 2.2 and 2.2.1 the message that my tablet with Android 5.1.1 gives me is this:
"AN ERROR OCCURRED WHEN ANALYZING THE ANDROID PACKAGE "
Argh, it was too late for me last night.
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : I'm sorry. I forgot to mention that the zip archive contains cpcemu.exe only and that you have to copy this file to the installation folder (overwriting the previous cpcemu.exe).
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : Thanks, this message will help to find the primary problem. In the meantime, I also found that there are ways to open a file explorer if there is one installed, but they are not reliable for different explorers. I also noticed that the Android 5 browser does not hand over a file to CPCemu when downloading a file, but a URL. So I still have to add a download routine.
@SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124) : Meanwhile, I have created and uploaded the 64-bit ARM version for the Raspberry Pi: https://cpc-emu.org/download.html (https://cpc-emu.org/download.html).
Quote from: Emu on 23:17, 20 March 21
@SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124) : Meanwhile, I have created and uploaded the 64-bit ARM version for the Raspberry Pi: https://cpc-emu.org/download.html (https://cpc-emu.org/download.html).
Nice, I'll try tomorrow :)
Quote from: Emu on 17:17, 20 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : I'm sorry. I forgot to mention that the zip archive contains cpcemu.exe only and that you have to copy this file to the installation folder (overwriting the previous cpcemu.exe).
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
No problem. I have copied the EXE to the installation folder and re-tested. This time, the latest dialog box states
Screen 8.
Kind regards
PaddyUK
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : It appears to be a naming problem of the APK, but I don't understand why this does not occur in version 2.1, and why this does not happen to everybody. Version 2.1 does work on the same device?!?
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for the report. Probably, I found the reason. I requested hardware-accelerated graphics, assuming everybody has one, today. In the following version, I removed this condition but left in the remaining check points, please test: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip)
Quote from: Emu on 16:34, 21 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for the report. Probably, I found the reason. I requested hardware-accelerated graphics, assuming everybody has one, today. In the following version, I removed this condition but left in the remaining check points, please test: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip)
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
Thank you for your reply. I have tested with the new EXE and I get exactly the same result as before i.e. it gets to the Screen 8 dialog box.
Just to clarify, my PC in a ThinkPad E460 laptop with an Intel Core i7 6600U processor (Intel HD Graphics 520). In addition, the laptop has dedicated graphics in the form of an AMD Radeon R7 M360 with 2GB RAM.
Hope this helps.
PaddyUK
@Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
Thx for this ARM 64 Bit Version, works fine here, tested some gaes on it so far ....
BUT !!!! Can you implement an Option to turn the sound down ? I got my System sound at minimum but CPCEmu is still VERY loud ....
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : I'm sorry, again, I pasted the wrong link. I'm afraid I'm getting old. "v2" was the previous test version, of course we're at "v3" now: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v3-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v3-win32-x86-2.2.zip)
@SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124) : I've also noticed that CPCemu is quite loud under some conditions. Actually, I would have supposed that it still is governed by the system's audio settings (setting a maximum output level). I have to look if I need to explicitly set a flag for this behaviour (which would be strange in my opinion).
Quote from: Emu on 20:11, 21 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : I'm sorry, again, I pasted the wrong link. I'm afraid I'm getting old. "v2" was the previous test version, of course we're at "v3" now: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v3-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v3-win32-x86-2.2.zip)
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
Extracted the new EXE and copied it to "C:\Program Files (x86)\CPCEMU-2.1\cpcemu.exe".
When I select CPC6128, I get a dialog box stating "Screen" followed by a blank window. After a few seconds the blank window closes and then nothing.
Just to clarify, my PC in a ThinkPad E460 laptop with an Intel Core i7 6600U processor (Intel HD Graphics 520). In addition, the laptop has dedicated graphics in the form of an AMD Radeon R7 M360 with 2GB RAM.Kind regards
PaddyUK
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Please try it from CMD again, including the redirection, and tell me the error message in log.txt:
cpcemu.exe > log.txt 2>&1
However, I expect: "Couldn't find matching render driver", which wouldn't help my any further.
Have you installed the latest graphics drivers? Are you perhaps trying this on Linux with Wine or something similar?
Quote from: Emu on 16:34, 21 March 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : It appears to be a naming problem of the APK, but I don't understand why this does not occur in version 2.1, and why this does not happen to everybody. Version 2.1 does work on the same device?!?
Sorry, I have not been able to answer before.
Indeed, all the tests have been done on the same device.
Now I have version 2.1 installed, but it has the problem that I can't get out of the apk installation directory, to search for more DSK's. :-[
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : Thank you. I think I found a possible reason for the installation problem of v2.2 - I might have checked only one of the two signature options when creating the APK. On the other hand, a deinstallation should help to avoid this problem, which was not the case for your device. So, let's see if it works again if I use both signatures in the next release.
I'm already working on it, because I was told that the keyboard support for French (and, obviously, any other language, even German) is broken. I clearly remember me typing all keys in every selectable keyboard language to record the key codes at the correct places one day in the past - and typing on the German keyboard in CPCemu sometimes. I must have overwritten the .dat file with these key bindings later. I wonder why I cannot find the correct version among all the old versions. I'll continue to look for it and will have to redo this work if I cannot find it.
To make you and @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) happy I included the privilege to browse directories. Unfortunately, this works only in my Android 5 emulator, not in later emulated Android versions. I have not tested in on our real Android 5 device, yet.
Quote from: Emu on 21:55, 23 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Please try it from CMD again, including the redirection, and tell me the error message in log.txt:
cpcemu.exe > log.txt 2>&1
However, I expect: "Couldn't find matching render driver", which wouldn't help my any further.
Have you installed the latest graphics drivers? Are you perhaps trying this on Linux with Wine or something similar?
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)
Thank you for your reply. I ran the test from the command line again and this is what the log file contains:
CPCEMU (v2.2) - The CPC Emulator (c) Marco Vieth & Rainer Loritz 2002-2021 -- all rights reserved --Both Intel integrated and AMD discrete graphics are fully updated (as is the OS).
Versions are:
OS - Windows 10 Home 20H2 19042.870
Intel HD 520 Driver - 27.20.100.9316, 18/02/2021
AMD Radeon R7 M360 Driver - 27.20.15003.1004, 10/03/2021
Hope this helps.
Kind regards
PaddyUK
Quote from: Emu on 12:30, 27 March 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : Thank you. I think I found a possible reason for the installation problem of v2.2 - I might have checked only one of the two signature options when creating the APK. On the other hand, a deinstallation should help to avoid this problem, which was not the case for your device. So, let's see if it works again if I use both signatures in the next release.
I'm already working on it, because I was told that the keyboard support for French (and, obviously, any other language, even German) is broken. I clearly remember me typing all keys in every selectable keyboard language to record the key codes at the correct places one day in the past - and typing on the German keyboard in CPCemu sometimes. I must have overwritten the .dat file with these key bindings later. I wonder why I cannot find the correct version among all the old versions. I'll continue to look for it and will have to redo this work if I cannot find it.
To make you and @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) happy I included the privilege to browse directories. Unfortunately, this works only in my Android 5 emulator, not in later emulated Android versions. I have not tested in on our real Android 5 device, yet.
Thank you
Then we will wait for that new version with the new signatures.
:)
Congrats @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040) to the new version of cpcemu. Actually cpcemu was the first CPC emulator that I ever used, years ago already on DOS. I even built the parallel port cable to transfer the ROMs and other data from my CPC to the PC :) What I still like very much with this emulator - and what I think is a quite distinctive feature compared to the "competition" - is the feature to use |TAPE to read files directly from a directory on the hard disk (rather than having to have them in .DSK files). Unfortunately, on Linux this feature is not working as reliable anymore as previously on DOS. Because suddenly this is case sensitive although ideally it shouldn't be. Normally on the CPC it shouldn't make a difference if I say run"disc" or run "DISC", but at the moment this makes a difference. It would be great if this could be fixed. ;)
Is there any progress for the Android version?
Has anyone with Android 5.0 been able to load dsk's without root?
5??!!
Hi, does anyone know where | (bar) is mapped in the new versions of CPCEmu?
You have to change to keyboard 5 in the cfg.
Are there some CPCs without a | ?
Attempting to assemble something in protext+maxam1.5 with the new sdcard emulation, I often get file corruption and/or .$$$ files, is that likely an emulation issue or an incompatibility between maxam 1.5 and m4?
@zhulien (https://www.cpcwiki.eu/forum/index.php?action=profile;u=58) :
Hi, I have never used Protext nor Maxam. Can you describe the steps you do more explicitly (and the expected result on the step where CPCemu fails)? Which version and which host system (Windows, Ubuntu, Raspberry, 64/32 bit, ...) are you using?
@zhulien (https://www.cpcwiki.eu/forum/index.php?action=profile;u=58) : Only now I've seen your | problem. Are you using the French keyboard layout of CPCemu (I think it's no. 2)? Are you using a French host keyboard layout?
Quote from: Emu on 10:11, 26 July 21
@zhulien (https://www.cpcwiki.eu/forum/index.php?action=profile;u=58) :
Hi, I have never used Protext nor Maxam. Can you describe the steps you do more explicitly (and the expected result on the step where CPCemu fails)? Which version and which host system (Windows, Ubuntu, Raspberry, 64/32 bit, ...) are you using?
Using Windows 10 - i switched to keyboard language 5 so I can type a | (although the keys physically are a standard USA PC keyboard). I haven't yet figured out using a USA PC keyboard how to type a | and a \ on the same keyboard.
Using protext.rom and maxam15.rom (from CPC Wiki), setup the emulator to use the SDCARD folder and M4. Make a folder in the SDCARD such as DEV.
From CPC side now...
|cd,"dev" (ok)
|cd,".." (doesn't revert to parent folder)
|cd,"\" (I cannot type a \, where is it?)
when within dev, i.e. |cd,"dev"
|p (to bring protext)
prog (from within the protext commandline to turn it into program mode)
esc (lets you swap between program mode and protext commandline)
type something at the top
esc (protext commandline)
save (enter)
<enter filename> test.asm
load (enter)
<enter filename> test.asm
save (enter)
<enter filename> test.asm (test.bak is created)
load (enter)
<enter filename> test.asm
save (enter)
<enter filename> test.asm (test.$$$ is created, but $$$ is actually the latest, not the oldest)
Regarding the backslash (I have not been able to try Protext, yet): You don't need it for |CD. The M4 board accepts regular slashes as well (if not even as the primary path separator, I can't tell). So, |CD,"/" will bring you to the top folder.
At the moment I'm not sure where the backslash is in keyboard layout 0. I think I had to omit it, because the CPC's key for it does not exist on today's keyboards.
Quote from: Emu on 22:12, 27 July 21
Regarding the backslash (I have not been able to try Protext, yet): You don't need it for |CD. The M4 board accepts regular slashes as well (if not even as the primary path separator, I can't tell). So, |CD,"/" will bring you to the top folder.
At the moment I'm not sure where the backslash is in keyboard layout 0. I think I had to omit it, because the CPC's key for it does not exist on today's keyboards.
For some reason I haven't been able to get back to the top folder within the emulator - but i can on a real CPC+m4.
For my, |cd,"/" gives an error Unknown directory.
Please try v2.3.3 (https://cpc-emu.org/download.html). It should resolve your $$$ issue.
Unfortunately, I'm not yet able to reproduce the issue with |CD,"/".
2.3.3 fixes the following:
constant saving of files -> test.asm over the top with correct .bak behaviour and no more .$$$
Seems Utopia_v1_25b.ROM has issues, |era,"*.bak" always has file not found, and even a specific filename doesn't work too - but removing the utopia ROM fixes things.
I still cannot change up a folder, |cd,"/" gives "Unknown directory"
My Config file as follows, note I have moved the disc, tape and sdcard folders to another drive than the installation location of EmuCPC.
; Configuration File created by CPCEMU (v1.5) on 7/24/2021
AMSDOS_DISABLED = 0
AMSDOS_SPEEDUP = 1
BREAK_MASK = 3
COLOUR_SCREEN = 1
COMPANY_NAME = 7
CPC_TYPE = 2
CRTC_TYPE = 1
DATA_FILE = "./cpcemu.dat"
DRIVE_A = "e:\emulator\CPCemu\DISC/"
DRIVE_A_AUTOSTART = 1
DRIVE_A_SIDE = 0
DRIVE_A_WRITEPROT = 0
DRIVE_B = "e:\emulator\CPCemu\DISC/"
DRIVE_B_AUTOSTART = 0
DRIVE_B_SIDE = 0
DRIVE_B_WRITEPROT = 0
EMS_ENABLED = 0
EMULATION_DELAY = 0
EMULATION_SPEED = 0
HELP_FILE = "./cpcemu.hlp"
INTERRUPT_FREQUENCY = 300
INTERRUPT_RESUME = 1
JOY0_CALIBRATE = 1702324,4476838,1702152,4617824
JOY1_CALIBRATE = 1702324,4207704,1702140,1702340
JOY0_CURSOR_KEYS = 0
KBD_LANGUAGE = 5
LANGUAGE = 0
M4_ENABLED = 1
MOUSE_ENABLED = 1
MULTIMODE_UPDATE = 2
PALETTE_CHANGE = 1
POKE_DATABASE = "./cpcemu.dbf"
PPI_50HZ = 1
PPI_EXP_SIGNAL = 1
PRINTER = "PRN"
RAM_SIZE = 576
REALTIME = 1
ROM_BLOCK = 0,"CPC6128.ROM",1
; ROM_BLOCK = 1,"Utopia_v1_25b.ROM",0
ROM_BLOCK = 3,"MAXAM15.ROM",0
ROM_BLOCK = 4,"PROTEXT.ROM",0
ROM_BLOCK = 6,"M4.ROM",0
ROM_BLOCK = 7,"CPCADOS.ROM",0
ROM_BLOCK = 8,"SUPER.ROM",0
ROM_BLOCK = 9,"DOLOGY6.ROM",0
; ROM_BLOCK = 10,"CC.ROM",0
; ROM_BLOCK = 255,"FW315EN.ROM",0
ROM_BLOCK = 255,"CPC6128.ROM",0
ROM_PATH = "e:\emulator\CPCemu\ROM/\"
SB_DELAY = 0
SB_DELAY0 = 0
SB_DMA_BUF = 0
SB_SAMPLE_RATE = 1
SB_STEREO = 1
SCREEN_OFFSET = 0
M4_SDCARD_MODE = 1
SHOW_CONFIG = 1
SNAPSHOT = "e:\emulator\CPCemu\SNAP/"
SOUND_DEVICE = 0
SOUND_ENABLED = 1
TAPE_BYPASS = 1
TAPE_PATH = "e:\emulator\CPCemu\TAPE/\"
TMP_PATH = ""
VIDEO_MODE = 0
VSYNC_POSITION = 0
M4_SD_PATH = "e:\emulator\CPCemu\SDCARD/\"
; end
I've never used Utopia. Anyway, it is well possible that there are bugs with wildcards. I'm going to look after this one.
Regarding the slash: What happens if you remove the final backslash or the last slash in M4_SD_PATH?
Quote from: Emu on 22:26, 04 August 21
I've never used Utopia. Anyway, it is well possible that there are bugs with wildcards. I'm going to look after this one.
Regarding the slash: What happens if you remove the final backslash or the last slash in M4_SD_PATH?
This doesn't work
M4_SD_PATH = "e:\emulator\CPCemu\SDCARD/"
but this does work
M4_SD_PATH = "e:\emulator\CPCemu\SDCARD"
Thanks, that was the cause of not being able to go up a folder.
I did still get a couple of $$$ files from maxam, but it is definitely less frequent that before. I am in the process of trying an alternate assembler that i am not very familiar with (orgams).
From Google Play there is no problem with the installation (Android 5.0)
It works and you can choose the .DSK from any folder. ;D :P
What is still not working well is the response of the keyboard. I will continue testing. :-[
@zhulien (https://www.cpcwiki.eu/forum/index.php?action=profile;u=58) : What astonishes me is that you still have problems with $$$ files. I really want to solve this problem, because I'm afraid it might be more wide-spread than you think. Can you describe in which situations it still happens?
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : I know, the keyboard support is rather poor in Android. I'm thinking of adding my own virtual keyboard for CPC input (e. g. translucent above the CPC screen). However, I think there will always be the problem of too little room for all keys on small displays. This means: many thoughts, much work and many more bugs with - possibly - little success. And I'm not sure yet if I want to enter into this adventure, seeing that this will only improve the Android version.
With version 2.4, the keyboard runs fine. :D
Perfect emulation. :D
The scanline of the screen is very cool. :D
My tablet is old and it's hard to move the emulator :( , but in general it works fine. ;D
Great work Emu.
Note: Now for the x64 version of windows. ;)
Hi
@Emu any chance of hardware keyboard support in the android version? I ask as my AYN Odin is crying out for a hardware keyboard to be able to play pinball dreams....
https://photos.app.goo.gl/P3cXp5Yi7LWBERhU6
Thanks
Craig.