Jump to content

Official software uploaded: Commander X16 Emulator (Win/Mac/Linux)


Recommended Posts

  • Administrators

Commander X16 Emulator (Win/Mac/Linux)


Precompiled emulators for Windows, Mac, and Linux.

This is the latest version. Older versions can be downloaded from the GitHub releases page.

(Note: To run on Mac use "Ctrl-click/Right-click > Open" instead of "Double-click" due to security protocols)


 

  • Like 2
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

How can we make the emulator recognize lower case letters? I have run it on a couple different Win10 systems and the default seems to be uppercase and the shift just produces an alternate character, not lower or upper case letter. I'm sure this is something simple I just don't understand or are missing.

Thanks,

Link to comment
Share on other sites

12 minutes ago, vhovar said:

How can we make the emulator recognize lower case letters? I have run it on a couple different Win10 systems and the default seems to be uppercase and the shift just produces an alternate character, not lower or upper case letter. I'm sure this is something simple I just don't understand or are missing.

Thanks,

Ctrl+N

  • Like 1
Link to comment
Share on other sites

45 minutes ago, vhovar said:

How can we make the emulator recognize lower case letters? I have run it on a couple different Win10 systems and the default seems to be uppercase and the shift just produces an alternate character, not lower or upper case letter. I'm sure this is something simple I just don't understand or are missing.

Thanks,

 

36 minutes ago, SlithyMatt said:

Ctrl+N

Part of the reason behind this is because the X16 defaults to Unshifted PETSCII, like the Commodore 64. Unshifted PETSCII doesn't contain lower-case letters, but the console can swap to Shifted PETSCII, which does contain lower-case letters. The alternate characters you saw are also part of the PETSCII character set.

Link to comment
Share on other sites

  • 1 month later...

It would be handy if the emulator had some indicators (bottom/ top bar or in title) for the current text and charset mode.

Being able to copy and paste in text without worry would be good, too. I had run into examples that I wanted to paste in to test or play with and it definitely made a mess of things. Since Copy and Paste are the most powerful developer tools ever, copying and pasting should work as well and as clear as possible in the emulator (and in every editor - especially letting people use their modern keyboards.).

This could also be fixed with more care with every example code block in the guides and wiki.

Alternatively - caps lock all the time. 🙂

Emulator Copypaste.png

Link to comment
Share on other sites

23 minutes ago, Starsickle said:

Being able to copy and paste in text without worry would be good, too.

Well, having an ASCII-based system would be good, too... but we don't. So, copy and paste mixed-case text is always going to be the opposite of what you want because PETSCII (my kingdom for CP437!). So, you can reverse your cases in your source file and copy and paste it in at any time. Just because you see graphical characters in place of uppercase doesn't mean the wrong codes are stored in your program. It will work as intended when switching to mixed-case mode, which should be part of your program to begin with.

Link to comment
Share on other sites

xForth follows the ANS Standard, which specifies standard words will be understood when written in upper case ASCII characters. What happens when they are the ASCII codes for lower case is an exercise for the reader ... some Forths are case sensitive, some are case insensitive, some treat words in all the same case as case insensitive but words in Mixed Case as case sensitive.

So the compliant approach I've taken is to leave it case sensitive, as eForth, and convert it to all upper case ASCII. So if coding in Upper/Graphics mode, don't shift characters and leave them in UPPER CASE. If coding in Upper/Lower mode, don't shift the characters and leave them in LOWER CASE.

And ^ appears as Up Arrow and _ appears as left arrow and \ appears as the British Pound currency symbol, as in ASCII 1963, but it all works without problems, because what the system cares about is whether the character codes in the dictionary and the character codes of the words you type match. It is not bothered by how they appear on the screen.

Just, when the Block system gets up and running and line commented code starts showing up, don't be startled by all the Pound symbols. That's not a bug.

Link to comment
Share on other sites

  • 7 months later...

I'm running the latest x16emu on a Win 10 AMD Laptop. While LOAD"PROGRAM.PRG" works fine, LOAD"$" to get the directory just hangs and then requires a Ctrl-C to break out. Attached my screenshots for reference. Any help appreciated since I looked around and couldn't find the issue reported elsewhere.

Just let me know if I'm doing something silly. Looking forward to the real device.

rka

x16emu_Dir_Issue.pdf

Link to comment
Share on other sites

1 hour ago, rka said:

I'm running the latest x16emu on a Win 10 AMD Laptop. While LOAD"PROGRAM.PRG" works fine, LOAD"$" to get the directory just hangs and then requires a Ctrl-C to break out. Attached my screenshots for reference. Any help appreciated since I looked around and couldn't find the issue reported elsewhere.

Just let me know if I'm doing something silly. Looking forward to the real device.

rka

x16emu_Dir_Issue.pdf 213.09 kB · 2 downloads

Unfortunately, this has been a bug with SD cards for a while.  You can still see the directory listing with:

DOS "$" 

Link to comment
Share on other sites

  • 1 month later...

From the release notes for r38: "changed PETSCII screen codes $65/$67 to PET 1/8th blocks"

I don't see any difference between X16 and C64. I tried this code in x16emu:

5 SCREEN0
10 ?CHR$($65);CHR$($67)

and this in x64 in VICE 3.4 SDL2:

5 ?"{clear}";
10 ?CHR$(6*16+5);CHR$(6*16+7)

({clear} is Shift+Home i.e. a reversed heart.)

What is the difference between the C64 character set and X16? I think it's good if there are identical characters in C64 that they are different in X16, because there is no point in having identical characters. It is a problem of how to print them since the Style64.org PETSCII font probably only supports C64.

Link to comment
Share on other sites

Posted (edited)
1 hour ago, mobluse said:

From the release notes for r38: "changed PETSCII screen codes $65/$67 to PET 1/8th blocks"

I don't see any difference between X16 and C64. I tried this code in x16emu:

5 SCREEN0
10 ?CHR$($65);CHR$($67)

and this in x64 in VICE 3.4 SDL2:

5 ?"{clear}";
10 ?CHR$(6*16+5);CHR$(6*16+7)

({clear} is Shift+Home i.e. a reversed heart.)

What is the difference between the C64 character set and X16? I think it's good if there are identical characters in C64 that they are different in X16, because there is no point in having identical characters. It is a problem of how to print them since the Style64.org PETSCII font probably only supports C64.

This is the change it's referring to:

https://github.com/commanderx16/x16-rom/commit/62e10e1b9d97cc4e56fdb422c863aaf7582c3fd0

Looks like they changed them from being two pixels wide to one pixel wide.  From what I can tell, the $65 and $67 are referring to the character tile values (screen codes), not the PETSCII codes.  So you would see it by doing something like this.

CLS : VPOKE 0,0,$65 : VPOKE 0,2,$74

As you can see, comparing $65 to $74, $74 is twice as wide, whereas they used to be identical.

Edited by Ender
Link to comment
Share on other sites

Posted (edited)

I have updated the PETSCII:

x16emu:

5 SCREEN0
10 ?CHR$($A5);CHR$($A7)

VICE x64:

5 ?"{clear}";
10 ?CHR$(10*16+5);CHR$(10*16+7)

There seems to be an error in the X16 ROM for CHR$($A7) because it is not just thinner, but in the wrong end compared to C64.

Edited by mobluse
Link to comment
Share on other sites

  • 2 weeks later...
On 7/24/2020 at 6:23 PM, vhovar said:

How can we make the emulator recognize lower case letters? I have run it on a couple different Win10 systems and the default seems to be uppercase and the shift just produces an alternate character, not lower or upper case letter. I'm sure this is something simple I just don't understand or are missing.

Thanks,

Press CTRL-N in the emulator. 

Link to comment
Share on other sites

On 7/7/2020 at 10:20 PM, Michael Steil said:

Maintenance releases? How about more regular releases? 🙂 I'll try that!

Michael, I had read somewhere that version 39 would be created of the emulator machine. Is this still on the go? Reason of the ask is if the zero page $00 would still select the RAM bank instead of the VIA port address?

Link to comment
Share on other sites

3 hours ago, ZeroByte said:

That’s how the real hardware works, so clearly they aren’t going to roll that back out of the emulator and Kernal.

What I wanted to ask is that there is going to be a new emulator released soon? So I can test the code with the latest hardware configuration. Now it seems the release is still 38 Kyoto. Will there be a 39 emulator? Or am I understanding from your response that there won't be one, rather a machine with hardware?

Link to comment
Share on other sites

6 hours ago, svenvandevelde said:

What I wanted to ask is that there is going to be a new emulator released soon? So I can test the code with the latest hardware configuration. Now it seems the release is still 38 Kyoto. Will there be a 39 emulator? Or am I understanding from your response that there won't be one, rather a machine with hardware?

A while ago, like early April, Michael was active again and had seemed to plan to have R39 out soon at that time (I think he said something like he planned to have it out that weekend).  However, it looks like there may have been some sort of hang-up, since there doesn't seem to have been any activity since then.

Link to comment
Share on other sites

Posted (edited)

There was a flurry of pull requests being accepted, and then nothing. The current state of the code in GitHub uses $00-$01 for ram/rom banking control. I'm really hoping that someone pushes a button soon and makes the official R39 snapshot, because I'm still writing any code I intend to share/post for R38 and not updating cc65/ca65 until R39 is official.

 

Edited by ZeroByte
Link to comment
Share on other sites

5 hours ago, ZeroByte said:

There was a flurry of pull requests being accepted, and then nothing. The current state of the code in GitHub uses $00-$01 for ram/rom banking control. I'm really hoping that someone pushes a button soon and makes the official R39 snapshot, because I'm still writing any code I intend to share/post for R38 and not updating cc65/ca65 until R39 is official.

 

yes, want also to check if the rest of the memory is intact. Especially the amount of zero pages that are available to the user is of interest to me ...

Link to comment
Share on other sites

23 hours ago, Ender said:

A while ago, like early April, Michael was active again and had seemed to plan to have R39 out soon at that time (I think he said something like he planned to have it out that weekend).  However, it looks like there may have been some sort of hang-up, since there doesn't seem to have been any activity since then.

Yeah, if the main emulator developer is busy, maybe they can call on the main Kernel developer to pitch in ...

... oh, wait ... no, never mind.

Wait, what's that other strategy? Ah, yes, patience. Unlike my fitness, I am going to have to see to it that my patience actually gets some exercise.

Link to comment
Share on other sites

  • Super Administrators

Just a reminder of the group rules for everyone. Please don’t ask for updates. Updates come when they are ready on a proactive not reactive basis. We get a number of emails, messages, and posts asking for various updates and it puts unfair pressure on the team. We are 5 people with a wonderful community of over 20,000 people. The machine has not been launched yet. Updates will be posted here when ready, not because we are asked to give interim ones. Thank you for understanding.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use