Emulator r38 Released
-
- Posts: 292
- Joined: Wed Jun 03, 2020 11:33 am
- Location: Kalmar, Sweden
Emulator r38 Released
Every release feels like christmas. THANKS Michael Steil and everyone that have contributed! And a special thanks to @StephenHorn for the improvements to VERA! I have really been waiting for raster line and sprite collision interrupts!
Great also that WAI is now implemented. I actually thought it worked already. I have been using it for quite a long time but the code must just have resulted in a busy wait... This must be the answer to why WAI (sorry, trying to be funny) has been so slow in response.
Emulator r38 Released
Can someone tell me what Chars are that on a DE Keyboard layout?
Ctrl
+ =
and Ctrl
+ +
will toggle warp mode.I have no clue how to enable warp mode or how to identify I am in warp mode. Any idea?
-
- Posts: 94
- Joined: Mon May 18, 2020 7:25 pm
Emulator r38 Released
5 minutes ago, SerErris said:
Can someone tell me what Chars are that on a DE Keyboard layout? I have no clue how to enable warp mode or how to identify I am in warp mode. Any idea?
Try ß, +, -, = ... those keys near the backspace key... If you're okay with warp mode being enabled for the whole session, you can specify -warp on the command line.
If it really doesn't work on non-US/ISO keyboards, I can change the shortcut to something else in the next release. In this case, file an issue on GitHub against x16-emulator.
Emulator r38 Released
Hmm ... according to this picture the US keyboard has the + and = at the same key ... just shifted.
On a German keyboard this is the "´" key and the "`" key. The later one is with SHIFT. The documentation should better read CTRL-= and CTRL-SHIFT-=
It works ... however the same key is in X16 the "UP ARROW" key.
Emulator r38 Released
Great progress!
The following C code example works with cc65 for writing/reading files with an sdcard image attached to the emulator. If the load/vload worked as well I could add a logging capability to libX16 that would let a program do debug logging to a file for debug purposes. I'd love to support something like that for the host filesystem interface as well someday.
#include <string.h>
#include <stdio.h>
#include <cbm.h>
#define MAX_BUF_SIZE 80
int cbmwritefile()
{
char data[80];
int ssRet=0;
char ucDev=8;
char filename[20];
int len=0;
strcpy(data, "this is just an example text.");
len=(int)strlen(data);
strcpy(filename, "@0:cbmdata,w");
ssRet = cbm_open(2, ucDev, CBM_WRITE, filename);
if(! ssRet)
{
if(data != NULL) {
if(len >= MAX_BUF_SIZE) {
len=MAX_BUF_SIZE;
data[MAX_BUF_SIZE]='\0';
cbm_write(2, &len, 2);
cbm_write(2, data, len);
} else {
cbm_write(2, &len, 2);
cbm_write(2, data, len);
}
printf("writing file '%s'\r\n", filename);
}
}
else
{
printf("**error - can't write file: '%s'", filename);
}
cbm_close(2);
return ssRet;
}
int cbmreadfile()
{
int ssRet=0;
char ucDev=8;
char buffer[MAX_BUF_SIZE];
char filename[20];
int flen=0;
strcpy(filename, "@0:cbmdata,r");
memset(buffer, 0, MAX_BUF_SIZE);
ssRet = cbm_open(2, ucDev, CBM_READ, filename);
if(! ssRet)
{
cbm_read(2, &flen, 2);
cbm_read(2, buffer, flen);
printf("reading file '%s'\r\nlength: %d [ %d max.]", filename, flen, MAX_BUF_SIZE);
printf("\r\ntext : %s\r\n", buffer);
}
else
{
printf("**error - can't read file '%s' ", filename);
}
cbm_close(2);
return ssRet;
}
int main()
{
int ssRet=0;
printf("** filetest 0.2 stdio.h / cbm.h **\n");
printf("calling cbmwritefile()\r\n");
ssRet = cbmwritefile();
printf("err: %d\r\n", ssRet);
printf("calling cbmreadfile()\r\n");
ssRet = cbmreadfile();
printf("err: %d\r\n", ssRet);
return 0;
}
-
- Posts: 8
- Joined: Tue Jul 07, 2020 9:47 pm
- StephenHorn
- Posts: 565
- Joined: Tue Apr 28, 2020 12:00 am
- Contact:
Emulator r38 Released
I'm not a Mac guy, but is it possible Scott is missing something like C development libraries or something? Could/should they try installing GCC or something?
Developer for Box16, the other X16 emulator. (Box16 on GitHub)
I also accept pull requests for x16emu, the official X16 emulator. (x16-emulator on GitHub)
I also accept pull requests for x16emu, the official X16 emulator. (x16-emulator on GitHub)
-
- Posts: 913
- Joined: Tue Apr 28, 2020 2:45 am
Emulator r38 Released
The answer to "should I install gcc?" is always YES