Author Topic: Axe Q&A  (Read 591276 times)

0 Members and 1 Guest are viewing this topic.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1500 on: May 25, 2012, 12:34:50 pm »
Where can I find the Freq() function?
Also what do the green Key:Sinreq mean? Is that supposed to be an indication as to where i can find Freq() ?
Yes in fact Axe replaced the Sinreg token by a custom Freq token. It means that the Freq function is at the same place as Sinreg.
So what you would have to do is [2nd],[0],[S] then scroll down until you find the Freq/Sinreg token :)
Be sure to have launched Axe at least once so that the hook is installed. Else, Freq would appear as Sinreg.

Also, welcome on the forums, you can introduce yourself here
« Last Edit: May 25, 2012, 12:35:55 pm by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Axe Q&A
« Reply #1501 on: May 25, 2012, 03:39:02 pm »
The fastest way to access SinReg/Freq is pressing STAT, Right, Up (I know because I used it in many of my sound programs)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1502 on: May 26, 2012, 12:55:58 am »
Thanks for the tip :)
The only program in which I used Freq was done through TI-Convert so I just had to type Freq :P
But it is easier to go to the catalog when you don't know where a command is (and if you know which token it replaces)

edit: 1024th post *.*
« Last Edit: May 26, 2012, 12:56:33 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

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: Axe Q&A
« Reply #1503 on: May 26, 2012, 12:56:52 am »
Thanks for the tip :)
The only program in which I used Freq was done through TI-Convert so I just had to type Freq :P
But it is easier to go to the catalog when you don't know where a command is (and if you know which token it replaces)
That must have taken a long time to scroll, especially if you can't jump to the first letter O.O




Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1504 on: May 26, 2012, 01:00:43 am »
Thanks for the tip :)
The only program in which I used Freq was done through TI-Convert so I just had to type Freq :P
But it is easier to go to the catalog when you don't know where a command is (and if you know which token it replaces)
That must have taken a long time to scroll, especially if you can't jump to the first letter O.O
Well he knew that Freq started with an S (← lol) so he could have jumped to the S.
But yeah, I tried it and Sinreg is not that close from the first S token :(
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #1505 on: May 28, 2012, 10:54:33 am »
beh its super easy to find in the menus.
I'm not a nerd but I pretend:

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Axe Q&A
« Reply #1506 on: June 06, 2012, 10:11:02 pm »
So when you use Text(Y*256+X) to set the pen cursor, you're storing a 2 byte value somewhere right? Where is that somewhere? And if not, is it still possible to access this value?

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1507 on: June 07, 2012, 12:55:36 am »
I think Text(...) sets curRow and curCol so the adress would be 844Bh (and 844Ch next).
Correct me if I am wrong
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

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: Axe Q&A
« Reply #1508 on: June 07, 2012, 02:23:41 pm »
I think Text(...) sets curRow and curCol so the adress would be 844Bh (and 844Ch next).
Output(NUM) sets curRow and curCol (home screen cursor position). Text(NUM) sets penCol and penRow (notice the order is backwards for whatever reason), which control starting points for drawing commands.

penCol is $86D7 (low byte, X coordinate) and penRow is $86D8 (high byte, Y coordinate).
« Last Edit: June 07, 2012, 02:28:34 pm by Deep Thought »




Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1509 on: June 10, 2012, 08:32:46 am »
Is it possible to only shift the 8 bottom rows of a buffer ?
Like "Horizontal - " but only for the 8 last rows ?

(At worst, I could copy them somewhere and use some Bitmapping to pseudo-shift them)
Nope, I tried this and it is too slow D:
« Last Edit: June 10, 2012, 08:47:14 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Axe Q&A
« Reply #1510 on: June 10, 2012, 08:58:26 am »
I think you'd have to write your own routine for that.
It's quite slow but you could copy the last 8 rows of the buffer to another buffer, shift that and copy it back.

example with L6 and L3 (if you use them for something else you'd have to use other buffers)
Code: [Select]
Copy(L6+672,L3,96)
Horizontal -(L3)    //or Horizontal -r
Copy(L3,L6+672,96)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1511 on: June 10, 2012, 10:19:11 am »
I think you'd have to write your own routine for that.
It's quite slow but you could copy the last 8 rows of the buffer to another buffer, shift that and copy it back.

example with L6 and L3 (if you use them for something else you'd have to use other buffers)
Code: [Select]
Copy(L6+672,L3,96)
Horizontal -(L3)    //or Horizontal -r
Copy(L3,L6+672,96)
Yes, I tried this. The main problem is that I wanted to shift two buffers so it was very slow.
Moreover, what I tried was an optimized version of yours that only needed one copy instead of two, but it was still slow as hell D:
But nevermind, I found a way to avoid having to shift two buffers in my program ;)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Axe Q&A
« Reply #1512 on: June 10, 2012, 12:35:07 pm »
I remember getting some runercode to shift the buffers, tho iirc it started from the top instead of the bottom.
I can't find the stuff in the irc logs, I guess I'll check my etherpads and stuff to see if they're in the chatlogs/code.
Vy'o'us pleorsdti thl'e gjaemue

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Axe Q&A
« Reply #1513 on: June 15, 2012, 09:52:01 am »
is there some way that only part of a file could be copied over when reading from the archive?

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Axe Q&A
« Reply #1514 on: June 15, 2012, 12:04:11 pm »
What do you mean, "copied"? When you GetCalc() a file, all that happens is that a pointer (2 bytes) and a mem bank ID (1 byte) are stored to an area in memory (oYn) to where the archived file resides. No copying is done unless you use the Copy()/conj() command, and there you can choose exactly how many bytes you want to copy.