Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Keoni29 on May 30, 2011, 03:12:56 pm

Title: Fast scroll to bottom of code editor
Post by: Keoni29 on May 30, 2011, 03:12:56 pm
Is there a modification for the code editor available that allows you to scroll to the bottom of your programme reaaaaallly fast? Most of the time I'm scrolling down. Alpha is just not fast enough :(
Title: Re: Fast scroll to bottom of code editor
Post by: Munchor on May 30, 2011, 03:13:31 pm
Is there a modification for the code editor available that allows you to scroll to the bottom of your programme reaaaaallly fast? Most of the time I'm scrolling down. Alpha is just not fast enough :(

Oh my, how I wish that lots of times too, but I don't really know any.
Title: Re: Fast scroll to bottom of code editor
Post by: Keoni29 on May 30, 2011, 03:17:08 pm
When there is an error message it scrolls down rapidly to a line of code, so it is possible. (Lots of hackers hanging around here  ;D)
Title: Re: Fast scroll to bottom of code editor
Post by: Deep Toaster on May 30, 2011, 03:47:26 pm
When there is an error message it scrolls down rapidly to a line of code, so it is possible. (Lots of hackers hanging around here  ;D)

If you're using BASIC, one way to do that is to put a Pause or something at the end of the program, then run the program and get to that Pause and press ON to break > 2:Goto. You could also install DoorsCS 7 (http://dcs.cemetech.net/) to use its Instant Goto.
Title: Re: Fast scroll to bottom of code editor
Post by: Munchor on May 30, 2011, 04:12:14 pm
When there is an error message it scrolls down rapidly to a line of code, so it is possible. (Lots of hackers hanging around here  ;D)

If you're using BASIC, one way to do that is to put a Pause or something at the end of the program, then run the program and get to that Pause and press ON to break > 2:Goto. You could also install DoorsCS 7 (http://dcs.cemetech.net/) to use its Instant Goto.

How to use the Instant Goto in DCS7?
Title: Re: Fast scroll to bottom of code editor
Post by: ben_g on May 30, 2011, 04:14:23 pm
when an error ocured (pressing on), and you select 'goto error', you'll jump to the line in which the error occured.
Title: Re: Fast scroll to bottom of code editor
Post by: Keoni29 on May 31, 2011, 01:35:02 am
This is the axe board >:( I know that trick, but axe is compiled, so it won't work :P
Any mods for the editor??
Title: Re: Fast scroll to bottom of code editor
Post by: Munchor on May 31, 2011, 03:00:00 am
This is the axe board >:( I know that trick, but axe is compiled, so it won't work :P
Any mods for the editor??

Nobody gave a mod, so I guess there isn't.
Title: Re: Fast scroll to bottom of code editor
Post by: DJ Omnimaga on May 31, 2011, 03:39:30 am
When there is an error message it scrolls down rapidly to a line of code, so it is possible. (Lots of hackers hanging around here  ;D)

If you're using BASIC, one way to do that is to put a Pause or something at the end of the program, then run the program and get to that Pause and press ON to break > 2:Goto. You could also install DoorsCS 7 (http://dcs.cemetech.net/) to use its Instant Goto.

How to use the Instant Goto in DCS7?
Just run it once. However it doesn't work with Axe Parser. It would be nice to have, though.
Title: Re: Fast scroll to bottom of code editor
Post by: Keoni29 on May 31, 2011, 09:33:13 am
It would be nice if you could fast-scroll to the middle or the end or even better:to a certain Lbl
Title: Re: Fast scroll to bottom of code editor
Post by: aeTIos on May 31, 2011, 09:43:38 am
Thats already a feature request. I hope it'll be added soon.
Title: Re: Fast scroll to bottom of code editor
Post by: Munchor on May 31, 2011, 05:59:22 pm
I'd love scrolling to the end, or as Keoni recommended to some Label
Title: Re: Fast scroll to bottom of code editor
Post by: ztrumpet on May 31, 2011, 06:05:39 pm
I bumped the zStart thread to see if ThePenguin would add it there.
http://ourl.ca/10110/215064
Title: Re: Fast scroll to bottom of code editor
Post by: Munchor on May 31, 2011, 06:07:57 pm
I bumped the zStart thread to see if ThePenguin would add it there.
http://ourl.ca/10110/215064

Good idea, you even added other ideas. So @Keoni, there's a chance this could be done, but thepenguin may not be able to make it, but he's a wonderful coder, I hope he can.
Title: Re: Fast scroll to bottom of code editor
Post by: ztrumpet on May 31, 2011, 06:09:09 pm
So @Keoni, there's a chance this could be done, but thepenguin may not be able to make it, but he's a wonderful coder, I hope he can.
If he doesn't make it, there are other capable coders that could, but I think it has the highest chance of getting done by thepenguin. :)
Title: Re: Fast scroll to bottom of code editor
Post by: Keoni29 on June 01, 2011, 12:33:00 pm
I just finished my first game using axe :D
Title: Re: Fast scroll to bottom of code editor
Post by: Munchor on June 01, 2011, 01:29:03 pm
I just finished my first game using axe :D

Why are you posting that here?
Title: Re: Fast scroll to bottom of code editor
Post by: Ashbad on June 01, 2011, 02:02:35 pm
if you can't stand scrolling to the bottom of a large program, use tons of subprograms instead.
Title: Re: Fast scroll to bottom of code editor
Post by: Keoni29 on June 01, 2011, 02:38:06 pm
Nope that ain't handy. People will forget to send those files with the game file via the link. They will all ask me for help. Thats kinda annoying.
By the way: It takes a while to find the sub( command in the archive.
Title: Re: Fast scroll to bottom of code editor
Post by: DJ Omnimaga on June 01, 2011, 02:48:33 pm
I do waht Ashbad said, but once I am done editing them I merge them. Illusiat 13 was about 40 sub-programs during early development. Once the program is finished you don't need the sub-programs anymore.

Also although Scout comment was a bit rude, it would be nice if you made a new topic about your first Axe game so we can try it.
Title: Re: Fast scroll to bottom of code editor
Post by: Ashbad on June 01, 2011, 02:55:03 pm
Keep in mind, Keoni, when you compile the multiple source files together, you end up with only one executable program that people have to send ;)  It simply makes it easier for you, and has no effect on the output program.

Same with BASIC -- do what DJ said if you do the same without Axe :)
Title: Re: Fast scroll to bottom of code editor
Post by: DJ Omnimaga on June 01, 2011, 02:57:10 pm
Oh yeah right I forgot about that lol. In fact, you can even make it an app so it won't clutter the PRGM menu, only the MEM menu with the appvars, if applicable. Apps takes a long while to transfer, though.
Title: Re: Fast scroll to bottom of code editor
Post by: ZippyDee on June 01, 2011, 02:58:25 pm
Nope that ain't handy. People will forget to send those files with the game file via the link. They will all ask me for help. Thats kinda annoying.
By the way: It takes a while to find the sub( command in the archive.
In Axe, you don't need the subprograms in order to execute the finished program. The data from subprograms are added into the program when you compile, so there's no need to send all the subprograms.

EDIT: Ninja'd here...

As for finding sub( in the Catalog:
Code: [Select]
[2ND] [0] [4] [UP] [UP]
Title: Re: Fast scroll to bottom of code editor
Post by: ztrumpet on June 01, 2011, 05:20:14 pm
Nope that ain't handy. People will forget to send those files with the game file via the link. They will all ask me for help. Thats kinda annoying.
By the way: It takes a while to find the sub( command in the archive.
As for finding sub( in the Catalog:
Code: [Select]
[2ND] [0] [4] [UP] [UP]
Or in the horrendous MP OSes,
Code: [Select]
[2ND] [0] [4] [UP] [UP] [UP]
Title: Re: Fast scroll to bottom of code editor
Post by: Munchor on June 01, 2011, 05:45:25 pm
Oh I'm not the only one that goes to T to get sub( afterall :P
Title: Re: Fast scroll to bottom of code editor
Post by: ztrumpet on June 01, 2011, 05:46:57 pm
Oh I'm not the only one that goes to T to get sub( afterall :P
The only way to get to it faster is to use Omnicalc's custom menu. ;)
Title: Re: Fast scroll to bottom of code editor
Post by: Keoni29 on June 02, 2011, 10:21:50 am
Oh I'm not the only one that goes to T to get sub( afterall :P
:D I didn't know there was an alphabetical search engine :P

I do waht Ashbad said, but once I am done editing them I merge them. Illusiat 13 was about 40 sub-programs during early development. Once the program is finished you don't need the sub-programs anymore.

Also although Scout comment was a bit rude, it would be nice if you made a new topic about your first Axe game so we can try it.
I have a topic in the calc related board now :).
Title: Re: Fast scroll to bottom of code editor
Post by: Deep Toaster on June 02, 2011, 07:41:06 pm
Made a little hook for the fun of it, to practice working with edit buffers, and because I absolutely have no time at all and really, really need to start working on my homework that's due two months ago. Run it once with Asm(prgmETOOLS to enable. Haven't added an option to disable yet, but if you really want to you can always RAM clear :P

ON+DOWN to jump to the end of the program, ON+UP to jump to the beginning.

Known bugs: ON+UP doesn't redisplay the screen, but it shouldn't cause problems. Just scroll around to get the window to update.

WARNING: The hook code is saved in smallEditRAM. What this means for you is you should not run the Conics app (if anybody uses that) or the hook gets killed. It may and probably will cause conflicts if you have other hooks enabled that were installed by programs (not apps, so all those Omnicalc, Symbolic, DoorsCS, MirageOS etc. hooks are all fine).

EDIT: Screenshot of jumping to the bottom of a 20 KB program ;D

EDIT2: Don't need to keep this to myself, so here's the source. Steal it if you want, but I really doubt you'd want to (it's unoptimized and the Begin routine is broken, sort of).

Spoiler For :
Code: (Z80 Assembly) [Select]
#include "ti83plus.inc"
.org $9D93
.db $BB,$6D
ld HL,smallEditRAM
ld A,1
bcall(_SetRawKeyHook)
ex DE,HL
ld HL,KeyHook
ld BC,KeyHookEnd-KeyHookStart
ldir
ret
KeyHook:
.org smallEditRAM
KeyHookStart:
.db 83h
ld D,A
bit editOpen,(IY+editFlags)
jr z,Return
in A,(4)
bit 3,A
ld A,D
jr nz,Return
cp kUp
jr z,Begin
cp kDown
ret nz
ld HL,(editBtm)
ld D,H
ld E,L
ld BC,(editTail)
sbc HL,BC
ret z
push BC
ld B,H
ld C,L
ld H,D
ld L,E
dec hl
ld A,tEnter
cpdr
jp pe,SkipPop
pop HL
jr SkipLd
SkipPop:
pop BC
push BC
sbc HL,BC
ld B,H
ld C,L
inc BC
inc BC
pop HL
ld DE,(editCursor)
ldir
ld (editCursor),DE
ld (editTail),HL
ld HL,$0101
ld (curRow),HL
SkipLd:
bcall(_EraseEOW)
bcall(_DispTail)
jr Return
Begin:
ld HL,$0101
ld (curRow),HL
ld HL,(editCursor)
push HL
ld DE,(editTop)
ld (editCursor),DE
sbc HL,DE
ld B,H
ld C,L
pop HL
ret z
dec HL
ld DE,(editTail)
dec DE
lddr
inc DE
ld (editTail),DE
bcall(_DispHead)
Return:
or A
ret
KeyHookEnd:
Title: Re: Fast scroll to bottom of code editor
Post by: ztrumpet on June 02, 2011, 08:22:14 pm
That's pretty cool.  Nice job, Deep! ;D
Title: Re: Fast scroll to bottom of code editor
Post by: Ashbad on June 02, 2011, 08:24:51 pm
Seconded.  I must trade in my manliness of scrolling manually and use something like this instead.  Pun intended.
Title: Re: Fast scroll to bottom of code editor
Post by: Keoni29 on June 03, 2011, 01:13:37 am
Yaaay. Everyone should use it. It's a timesaver man!
Title: Re: Fast scroll to bottom of code editor
Post by: DJ Omnimaga on June 03, 2011, 01:59:08 am
Wow pretty nice Deep!
Title: Re: Fast scroll to bottom of code editor
Post by: Hayleia on June 06, 2011, 07:32:06 am
Thought about something.
If you want to fast go to a label in your code, you can do in your prog
Code: [Select]
GotoXX
...
...
LblXX
.LabelXX
...
etc
As there is ".LabelXX" after, it is seen as an error by the TI-OS, so with DoorsCS, running your prog will jump to your label. But you have to remove the Goto before compiling. If you don't understand, tell me.

EDIT: this only work for labels that only uses maximum 2 chars (such as LblAA and not Lbl AAA) (they have to be seen as Basic labels). I didn't try it with 3 chars before posting because I only use labels with 2 chars :-\. Sorry. But you still can add little labels inside your code, regularly, such as Lbl AA,AB,AC,...,ZZ, just to go faster to certain parts of your program. All your labels must be 2 chars long because when you say Goto, it checks all the labels, so if one is 3 chars, it will stop here and say error, at the first label it finds. So, this method only works if all your labels are 2 chars long.
Title: Re: Fast scroll to bottom of code editor
Post by: aeTIos on June 06, 2011, 09:10:26 am
Thats right. Well found!
Title: Re: Fast scroll to bottom of code editor
Post by: Hayleia on June 08, 2011, 03:00:29 am
With this method (and with DoorsCS), you can also modify your source without unarchiving it because your source begins by .NAME
This is how I discovered it (not on purpose).
Title: Re: Fast scroll to bottom of code editor
Post by: ZippyDee on June 08, 2011, 03:08:13 am
Well done! That is a very effective solution!
Title: Re: Fast scroll to bottom of code editor
Post by: JustCause on June 08, 2011, 04:51:05 am
Deep is a hero. No more words need be spoken.
Title: Re: Fast scroll to bottom of code editor
Post by: Aichi on June 08, 2011, 09:51:30 am
That's a great tool, Deep Thought. :D Too bad that it doesn't work together with DCS7. Or is it just me?
Title: Re: Fast scroll to bottom of code editor
Post by: Darl181 on June 13, 2011, 07:21:26 pm
I installed Omnicalc (options entries menu, RAM recovery, base conversion, lowercase letters, thousands separators, quick apps and hide finance app) and it disabled this.  And vice-versa.

Just putting  the bug report out there ;D

Awesome tool btw, when it works
Title: Re: Fast scroll to bottom of code editor
Post by: DJ Omnimaga on June 13, 2011, 07:23:07 pm
Yeah it probably conflicts with the hooks.
Title: Re: Fast scroll to bottom of code editor
Post by: leafy on June 13, 2011, 08:06:54 pm
Nope that ain't handy. People will forget to send those files with the game file via the link. They will all ask me for help. Thats kinda annoying.
By the way: It takes a while to find the sub( command in the archive.

2nd+mem+"t"+up twice.
Title: Re: Fast scroll to bottom of code editor
Post by: Keoni29 on June 14, 2011, 01:49:22 pm
Nope that ain't handy. People will forget to send those files with the game file via the link. They will all ask me for help. Thats kinda annoying.
By the way: It takes a while to find the sub( command in the archive.

2nd+mem+"t"+up twice.

Well I know that already...
Title: Re: Fast scroll to bottom of code editor
Post by: Deep Toaster on November 28, 2011, 09:53:08 pm
Nope that ain't handy. People will forget to send those files with the game file via the link. They will all ask me for help. Thats kinda annoying.
By the way: It takes a while to find the sub( command in the archive.
2nd+mem+"t"+up twice.
You mean 2nd+[CATALOG]+[T]+up+up? :)
Title: Re: Fast scroll to bottom of code editor
Post by: Darl181 on November 28, 2011, 09:55:07 pm
Lol forgot about this 0.o
I remember getting this to work a few times, but zStart has it now and it works pretty much always so I'm using that now :P
Title: Re: Fast scroll to bottom of code editor
Post by: epic7 on November 28, 2011, 09:55:09 pm
I think tried using this. It didn't work.
Title: Re: Fast scroll to bottom of code editor
Post by: Deep Toaster on November 28, 2011, 09:56:54 pm
I only tried it with MirageOS installed, and apparently DoorsCS doesn't like it. Use zStart if you have a TI-84 Plus -- it doesn't have these bugs :P
Title: Re: Fast scroll to bottom of code editor
Post by: epic7 on November 28, 2011, 09:58:24 pm
Have 83+ and doors.
/me smashes something
Title: Re: Fast scroll to bottom of code editor
Post by: Hayleia on November 29, 2011, 01:15:14 am
Have 83+ and doors.
/me smashes something
Then you can try my method (http://ourl.ca/11318/217000), maybe ?
Title: Re: Fast scroll to bottom of code editor
Post by: epic7 on November 29, 2011, 07:44:15 pm
How does that work?
Title: Re: Fast scroll to bottom of code editor
Post by: ralphdspam on November 29, 2011, 09:16:09 pm
How does that work?

If you put Goto XX as the FIRST line of the program , the BASIC parser jump  to wherever you put Label XX.  Once the OS reaches XX, it realizes that it is not BASIC code.  The BASIC parser will toss an error saying that it is invalid code.  Then, you select the option to goto the error. 

The only downside to this is that you have to change the first line of the program back in order to have it parsed by Axe.
Title: Re: Fast scroll to bottom of code editor
Post by: DJ Omnimaga on June 20, 2013, 04:07:04 am
Necrobump:

I wonder if this would be easy to port to the TI-84 Plus C Silver Edition? It takes 10 minutes to scroll through 20 KB of code O.O

Or maybe get it integrated into Doors CS 7 and 8?
Title: Re: Fast scroll to bottom of code editor
Post by: Sorunome on June 20, 2013, 04:07:48 am
this thing is helpful indeed O.O
BUt, well, zstart ftw :P
Title: Re: Fast scroll to bottom of code editor
Post by: DJ Omnimaga on June 20, 2013, 04:11:05 am
Yeah the issue is that some people need Doors CS' features that can be messed up by ZStart, and ThePenguin77 stated a few times that he is neither planning to get a TI-84 Plus C Silver Edition nor to port ZStart to it.
Title: Re: Fast scroll to bottom of code editor
Post by: Deep Toaster on July 08, 2013, 06:12:19 pm
I wonder if this would be easy to port to the TI-84 Plus C Silver Edition? It takes 10 minutes to scroll through 20 KB of code O.O
That's slower than my old TI-83 Plus O.O

I need to get a CSE sometime. Can't wait to start making stuff for a color screen :D
Title: Re: Fast scroll to bottom of code editor
Post by: DJ Omnimaga on July 09, 2013, 12:18:03 am
Indeed. It's that bad. However we can do some decent games with it, plus since the languages are similar, some programs might not be too hard to port, such as this one. (although if it's Axe I guess it has to be disassembled first)
Title: Re: Fast scroll to bottom of code editor
Post by: Deep Toaster on December 17, 2013, 11:32:32 pm
Indeed. It's that bad. However we can do some decent games with it, plus since the languages are similar, some programs might not be too hard to port, such as this one. (although if it's Axe I guess it has to be disassembled first)
This is a hook written in assembly. Any news on if hooks work the same way in CSE models?

EDIT: 8k posts!
Title: Re: Fast scroll to bottom of code editor
Post by: DJ Omnimaga on December 18, 2013, 12:30:42 am
I think they do. Mostly the LCD is different, as well as the extra RAM amount (128 KB, contrary to 48 KB on newer 84+ calcs)
Title: Re: Fast scroll to bottom of code editor
Post by: Hayleia on December 18, 2013, 01:55:32 am
That hook (http://ourl.ca/18394/365879) was ported to the CSE so I guess they work the same way or another but they work.