Author Topic: E37 made another small font editor  (Read 4842 times)

0 Members and 1 Guest are viewing this topic.

Offline E37

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +23/-0
  • Trial and error is the best teacher
    • View Profile
E37 made another small font editor
« on: June 29, 2016, 11:09:17 am »
Guess what? I made another small font program editor.
Yay.
Well, I made a lot of improvements - especially on the frame rate.
My first attempt got a screaming frame rate of 3 fps. On full speed mode. It was terrible.
I made some optimizations and this version gets 10-20 fps. On slow speed mode. Kinda faster.
My old editor couldn't open programs that had fewer than 8 lines. The new one doesn't care.
There are a lot of other improvements I won't bother mention.
I am posting it now because it has reached the point where I am using the editor to edit itself. Trippy right?
It would be cool if I got some responses or even better yet - IDEAS! (Or even better yet  - some code!)
I have kept some of zStarts key shortcuts such as on stat to APD and on + to copy and on enter to paste.
(the copy and paste code is buggy and is commented out for now)
I am in full bug-hunter mode - please tell me if anything is weird (even just the controls)
The only known bug is copying code and then evaluating it. (copy then on+ math)
The code needs to be compiled (as an app or program) you compile prgmEDITRSRC

on key combos:
on + / Sets a boundary
on + + copys all the code between the boundarys
on + enter pastes all the copied code to the cursor's location
on + math evaluates the copied code
There will eventually be recall from progNAME in the copied code also

I'm probably going to keep working on it whether or not it gets any interest. (but it feels great to get some support)
« Last Edit: June 29, 2016, 11:19:23 am by E37 »
I'm still around... kind of.

Offline NonstickAtom785

  • LV3 Member (Next: 100)
  • ***
  • Posts: 78
  • Rating: +4/-0
  • Just live life. Cal-cu-lat-or style!
    • View Profile
Re: E37 made another small font editor
« Reply #1 on: November 02, 2020, 09:40:34 am »
@E37 I know this is an old post but I was wondering what you did as an overall editing procedure. I'm making my own editing program but I don't know how to go about actually editing. Are you using a buffer and saving on the fly, or are you writing to the program directly?
Grammer2 is Good!

Offline E37

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +23/-0
  • Trial and error is the best teacher
    • View Profile
Re: E37 made another small font editor
« Reply #2 on: November 02, 2020, 01:22:09 pm »
@E37 I know this is an old post but I was wondering what you did as an overall editing procedure. I'm making my own editing program but I don't know how to go about actually editing. Are you using a buffer and saving on the fly, or are you writing to the program directly?
I am wrote to the program directly. Or at least a temporary copy of it if it was archived. I didn't make an edit buffer because it was hard and didn't really matter unless the program was 15kb or larger. I know I posted the guts of an editor somewhere or other, you should look at that as it is a lot better done than this.
I'm still around... kind of.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: E37 made another small font editor
« Reply #3 on: November 02, 2020, 01:55:27 pm »
Hello there.
If you don't intend to use extra RAM pages, i guess the easiest way is to use _editprog first, so that the program data automatically take all the available free RAM, and then _closeprog once you're done.
Those 2 ROM calls aren't on the wiki though, but you can find them in the official documentation (83psysroutines.pdf).