Welcome, Guest. Please login or register.


Author Topic: Xep128 (Read 110644 times)

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Xep128
« Reply #120 on: 2016.April.08. 14:27:24 »
ep128emu ignores unrecognized data blocks. The block types could be for example 0x584550XX, or anything that does not conflict with those that are already in use.

I thought somehow ... It's nice you implemented an extensible format :) But surely, I remember something from JSep where I implemented of loading ep128emu snapshots. I guess it's useless to invent a new format by myself :)

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Xep128
« Reply #121 on: 2016.April.11. 02:09:02 »
Gflorez, would you be so kind to test the new (well, I stuck with the -entermice.exe name somehow ...) version? I had to rewrite most of the part about FILE: handling, and I am not so sure if it still works on Windows ... In theory it should even allow to save/write something with FILE:, not jist load/read now ... Thanks!

Offline gflorez

  • EP addict
  • *
  • Posts: 3614
  • Country: es
    • Támogató Támogató
Re: Xep128
« Reply #122 on: 2016.April.11. 03:05:04 »
Ok, but you have to wait until tomorrow, as I am now on the tablet.

Offline gflorez

  • EP addict
  • *
  • Posts: 3614
  • Country: es
    • Támogató Támogató
Re: Xep128
« Reply #123 on: 2016.April.11. 11:13:57 »
Yes, it works. I have saved and loaded a Basic program as usual.

The XEP DIR and CD commands also work.

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Xep128
« Reply #124 on: 2016.April.12. 20:51:56 »
Yes, it works. I have saved and loaded a Basic program as usual.

The XEP DIR and CD commands also work.

Thanks! Another write support, just now on the SD card image (I mean that EP should be able to also write not just read the emulated SD card) not FILE: ;-)

http://xep128.lgb.hu/files/xep128-sdext-wr-test.exe

Warning, there is no guarantee that your SD card image won't be corrupted, etc, please back it up, if it's important :) Though I haven't seen any issue like this, but who knows with new stuffs, safety first ;)
« Last Edit: 2016.April.12. 20:56:40 by lgb »

Offline gflorez

  • EP addict
  • *
  • Posts: 3614
  • Country: es
    • Támogató Támogató
Re: Xep128
« Reply #125 on: 2016.April.12. 22:44:43 »
I don't see any error. All goes like it should be. I mean, it saves and loads perfectly what I've saved before.

Congratulations!

Offline gflorez

  • EP addict
  • *
  • Posts: 3614
  • Country: es
    • Támogató Támogató
Re: Xep128
« Reply #126 on: 2016.April.14. 11:00:51 »
A silly question:

Actually the Right Shift key is not defined on XEP128.

I assume that it could be done as this:

epkey@85 = Right Shift   # SHIFT

I've been trying to add the  new definition on the config file but then XEP refuses to start, showing an error "line too long".

How can I do it?

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Xep128
« Reply #127 on: 2016.April.14. 13:07:21 »
A silly question:

Actually the Right Shift key is not defined on XEP128.

I assume that it could be done as this:

epkey@85 = Right Shift # SHIFT

I've been trying to add the  new definition on the config file but then XEP refuses to start, showing an error "line too long".

How can I do it?

Actually, you seem to do it well. Line too long is a bit odd error. I guess there is some confusion with the fgets() function that for some reason it reads more than one line as a single one. Please send me your config file, I am curious. I need the exact file, maybe the line breaks (eg \r\n or \n) etc, can be the problem. And thanks for mentioning it, I will include the definition in the standard config too, somehow I forgot, it seems ...

Offline gflorez

  • EP addict
  • *
  • Posts: 3614
  • Country: es
    • Támogató Támogató
Re: Xep128
« Reply #128 on: 2016.April.14. 13:33:47 »
I don't think there are the line breaks, as I copied exactly the Left key definition, the following blank line and the carriage return from the original file, then I pasted it  and  at last I modified the line.

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Xep128
« Reply #129 on: 2016.April.14. 19:36:43 »
I don't think there are the line breaks, as I copied exactly the Left key definition, the following blank line and the carriage return from the original file, then I pasted it  and  at last I modified the line.

Well, that's odd. Just check the file out with a hex editor/viewer. It seems line endings are 0xD characters, I doubt Xep128 can write such a template config file ... In theory, Xep128 writes "native" line endings, ie in case of Windows CRLF endings (0x0D 0x0A), and just 0x0A in case of UNIX-like systems. Your file contains line ending other than either of these ... I have the suspect that your editor messed up the line endings on save, but I have no idea why. Xep128 simply uses the C89 standard fgets() function to read lines. With these non-standard line endings cause that fget treat your whole file as a single line, as it cannot identify any line endings to form more lines. Thus you have a quite long line, which causes the error message that line is too long. Even your file is shorter :) still it's meaningless as it shouldn't be *one* line (or more, but with invalid line endings). Please note, that this is an operating system + operating system library (ie, Windows or Linux and their standard libraries) issue, nothing to do with Xep128 too much ... Of course I can work-around this anyway with using own line reader routines instead of the functionality of the host OS itself ... But still, it's kinda odd, how can you produce such a line endings :)

Offline gflorez

  • EP addict
  • *
  • Posts: 3614
  • Country: es
    • Támogató Támogató
Re: Xep128
« Reply #130 on: 2016.April.14. 20:14:30 »
I use Notepad++ to edit text files, that supposedly doesn't modifies end of lines.... or at least I thought it.

When I only modified the single settings it stayed good, but adding one line more it has changed all the lines at reformatting the text.

But then I will re-assure that in my config the end of lines are as required, sorry for the inconveniences.

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Xep128
« Reply #131 on: 2016.April.14. 20:32:26 »
I use Notepad++ to edit text files, that supposedly doesn't modifies end of lines.... or at least I thought it.

Exactly, that's the headache for me. Many editors has the ability to detect line endings and using that while editing. ie, then you can edit Windows created text files on Unix, or vice versa. What I can't understand why (in your code) notepad++ converted existing line endings to new ones, instead of detecting the right one and use that? Especially since those are "native Windows" EOLs, we can't even say that it's "alien" for Notepad++ to have UNIX-style EOL on Windows ... I tried to be careful to use "native" EOLs on both of UNIX and Windows in config files, and console/monitor writes as well to avoid possible problems in the future. It seems I failed with this task :)

Quote
When I only modified the single settings it stayed good, but adding one line more it has changed all the lines at reformatting the text.

But then I will re-assure that in my config the end of lines are as required, sorry for the inconveniences.

Don't say that ... A user is not expected to deal with line endings, when he is interested in an emulator only :) Just I'm really surprised with these line endings, as it would disturb every single programs using C standard fgets() then, not just Xep128 ... This line endings were popular maybe in pre-MacOSX (MacOS 9?) era, I guess ... Interesting.

Btw: http://superuser.com/questions/479756/eol-in-notepad-and-notepad

Isn't that possible that at some time, you set some fixed EOL in notepad++ thus that's why it converted all EOLs for you?

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14775
  • Country: hu
    • http://enterprise.iko.hu/
Re: Xep128
« Reply #132 on: 2016.April.14. 20:47:47 »
I use Programmer's Notepad. It is can use Windows (CRLF), UNIX (LF), Machintosh (CR) line endings, and easy to convert the text to any version.

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Xep128
« Reply #133 on: 2016.April.14. 21:22:10 »
Ok, new Xep128 version, now at the standard :) distribution zip for Win32 build. It contains by default now the right shift as well. it seems somehow I missed to include in the default mapping :oops: Thanks for spotting! Also it contains the already experimental stuff, FILE: load/save, and SD card write ability on VHD image level.

Offline gflorez

  • EP addict
  • *
  • Posts: 3614
  • Country: es
    • Támogató Támogató
Re: Xep128
« Reply #134 on: 2016.April.16. 11:41:35 »
I've added a Link to the XEP128 emulator web page on the EnterMice wiki, on the list of compatible programs.