Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: E37 on June 29, 2016, 11:09:17 am

Title: E37 made another small font editor
Post by: E37 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)
Title: Re: E37 made another small font editor
Post by: NonstickAtom785 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?
Title: Re: E37 made another small font editor
Post by: E37 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.
Title: Re: E37 made another small font editor
Post by: the_mad_joob 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).