Author Topic: Fast scroll to bottom of code editor  (Read 20073 times)

0 Members and 2 Guests are viewing this topic.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Fast scroll to bottom of code editor
« Reply #15 on: June 01, 2011, 12:33:00 pm »
I just finished my first game using axe :D
If you like my work: why not give me an internet?








Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Fast scroll to bottom of code editor
« Reply #16 on: June 01, 2011, 01:29:03 pm »
I just finished my first game using axe :D

Why are you posting that here?

Ashbad

  • Guest
Re: Fast scroll to bottom of code editor
« Reply #17 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.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Fast scroll to bottom of code editor
« Reply #18 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.
« Last Edit: June 01, 2011, 02:39:04 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Fast scroll to bottom of code editor
« Reply #19 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.
« Last Edit: June 01, 2011, 02:49:32 pm by DJ_O »

Ashbad

  • Guest
Re: Fast scroll to bottom of code editor
« Reply #20 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 :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Fast scroll to bottom of code editor
« Reply #21 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.

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Fast scroll to bottom of code editor
« Reply #22 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]
« Last Edit: June 01, 2011, 02:59:44 pm by ZippyDee »
There's something about Tuesday...


Pushpins 'n' stuff...


Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Fast scroll to bottom of code editor
« Reply #23 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]
« Last Edit: June 01, 2011, 05:20:32 pm by ztrumpet »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Fast scroll to bottom of code editor
« Reply #24 on: June 01, 2011, 05:45:25 pm »
Oh I'm not the only one that goes to T to get sub( afterall :P

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Fast scroll to bottom of code editor
« Reply #25 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. ;)

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Fast scroll to bottom of code editor
« Reply #26 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 :).
« Last Edit: June 02, 2011, 10:23:45 am by Keoni29 »
If you like my work: why not give me an internet?








Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Fast scroll to bottom of code editor
« Reply #27 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:
« Last Edit: November 28, 2011, 09:51:43 pm by Deep Thought »




Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Fast scroll to bottom of code editor
« Reply #28 on: June 02, 2011, 08:22:14 pm »
That's pretty cool.  Nice job, Deep! ;D

Ashbad

  • Guest
Re: Fast scroll to bottom of code editor
« Reply #29 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.