Jump to content
IGNORED

VI for SpartaDOS ?


Frankie

Recommended Posts

 

This version is not crashing when yanking and putting.

Thank you again.

 

That is not good because I did not change anything in the program :) I just added some code at the beginning, which parses a CLI argument. Which means that "tad unstable" behaviour you observe may be dependent on the position of the code in the memory. In turn, whether this is something inherited from the original, or my error during sourcing the binary, it for now remains unknown.

 

@w1k: Altirra:

post-6049-0-50845900-1387885373_thumb.png

post-6049-0-26872800-1387885383_thumb.png

Link to comment
Share on other sites

That is not good because I did not change anything in the program :) I just added some code at the beginning, which parses a CLI argument. Which means that "tad unstable" behaviour you observe may be dependent on the position of the code in the memory. In turn, whether this is something inherited from the original, or my error during sourcing the binary, it for now remains unknown.

 

The original binary was also crashing when yanking and putting, so most likely it's as you say: depending on position in memory.

 

Update: It just crashed, in the romantic way :)

 

crash.png

Edited by greblus
Link to comment
Share on other sites

Hah! I did the same thing Jon. I even posted a ? to drac about it but caught my error adn edited it :)

Well, in my defence, I read his original post on a 4" mobile phone screen on a bus full of screaming children, and by the time I got home I was paying no heed to the detail... I was just excited to test it.

 

I suppose we could could disassemble this....

I disassembled it using DIS6502 at the weekend, but Konrad's making such an excellent job of it and is so far ahead of me by a country mile, I'm happy to leave him to it.

 

EDIT: (Optional) expanding tabs would be great, BTW, especially in 80 columns. :)

Edited by flashjazzcat
Link to comment
Share on other sites

I have it already disassembled. For testing purposes I could prepare a binary which loads at a page boundary or at a fixed address. This perhaps could help to improve the consistency of the program's behaviour and to identify problems using a debugger.

I wondered while looking at the code if some of it depended on certain parts being page-aligned or some such. This sounds like an excellent idea.

Link to comment
Share on other sites

One more version, I have remapped some key combos to match vi documentation: ctrl-g, ctrl-e, ctrl-y, ctrl-f, ctrl-e instead of the same keys with inverse video. Yet some remain to be remapped similarly (I guess the original author thought that the Inverse video key on Atari is an equivalent to Ctrl?).

 

I have also added initializing all variables to zero, just in case it improves anything (I doubt). I have also managed to reproduce the copy/paste problems, this looks like some pointer gets clobbered, and it indeed looks like a bug in the original.

 

Today I will not do anything more with it. Happy Christmas again.

vi65.zip

  • Like 2
Link to comment
Share on other sites

  • 4 months later...

FWIW, if I need a quick edit, I use vi.

 

If I need to do coding, I typically use emacs. The facilities for C/C++ coding in emacs are just enough, and quite intelligent, without stepping on your toes like many other editors (Eclipse, I am talking to you, you over-bloated piece of shit!)

 

-Thom

Link to comment
Share on other sites

FWIW, if I need a quick edit, I use vi.

 

If I need to do coding, I typically use emacs. The facilities for C/C++ coding in emacs are just enough, and quite intelligent, without stepping on your toes like many other editors (Eclipse, I am talking to you, you over-bloated piece of shit!)

 

-Thom

Can not stand Eclipse. . . . . . . .

Link to comment
Share on other sites

  • 2 years later...

Were the SD fixes ever applied to the 80 col version of vi65? Would it work with s_vbxe?

 

Note the vi65 sources are at

 

https://sourceforge.net/p/vi65/code/HEAD/tree/branches/v0.2/

 

svn checkout svn://svn.code.sf.net/p/vi65/code/ vi65-code

 

I was sort of hoping for CC65 but it's ASM :)

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.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...