• Axe Q&A 5 5
Currently:  

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

0 Members and 1 Guest are viewing this topic.

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
Re: Axe Q&A
« Reply #1725 on: April 22, 2014, 12:47:22 pm »
Edit: removed quote.
The C9 is what is getting you...
Code: [Select]
:Asm(FDCB249EC9)You should be able to get it to work if you remove the C9

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1726 on: April 22, 2014, 12:50:49 pm »
Ok thanks... I cannot hex, I learned this from YouTube, I supose C9 Stops the program?
« Last Edit: April 22, 2014, 03:24:11 pm by Runer112 »
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
Re: Axe Q&A
« Reply #1727 on: April 22, 2014, 12:54:03 pm »
Ask Xeda, she knows quite a bit about the opt-codes.

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: Axe Q&A
« Reply #1728 on: April 22, 2014, 12:57:40 pm »
C9 is the equivalent of the assembly "ret" command, wich is the equivalent of the axe command "return".
It indeed stop the program and give the control back to the OS if it is not use in a routine or such.
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #1729 on: April 22, 2014, 01:02:28 pm »
However, your program should be doing what it should do. It only won't give you feedback.
I'm not a nerd but I pretend:

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Axe Q&A
« Reply #1730 on: April 22, 2014, 01:52:46 pm »
Ugh, i got a little problem with axes Copy().
I have the following (relevant hex in bold):
Copy([2D0100001D2D1D000A00],L5,10)

And right after that, when i check the value of {L5+7}^r it is 2560.

Any clue what is going on here? O.O

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #1731 on: April 22, 2014, 01:55:38 pm »
Yup. Little endian going on. You need to reverse the bits.
I'm not a nerd but I pretend:

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Axe Q&A
« Reply #1732 on: April 22, 2014, 02:05:46 pm »
Yup, that was it, thanks a lot! :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1733 on: April 22, 2014, 02:10:41 pm »
Yup. Little endian going on. You need to reverse the bits.
*bytes. You don't have to reverse everything, just the two bytes ;)
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 NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1734 on: April 22, 2014, 02:14:40 pm »
Maybe I need some more information about pointers. If I type in: [BlaBla hex]->Pic 1 and then Pt-on(x,y,Pic 1+Z, what will happen then?
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Axe Q&A
« Reply #1735 on: April 22, 2014, 02:16:31 pm »
A pointer is a number that points to some location in RAM.
With [hex]->Pic1 you create a pointer, Pic1, that points to the location in ram where that hex is stored.
So Pic1 can be treated just like a number.
Let's say you want the second byte pointing to that pointer, you need to look one byte later in RAM, thus you do Pic1+1

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1736 on: April 22, 2014, 02:18:05 pm »
It will draw the sprite pointed by Pc1+Z ;)
Basically, if you do for example
[some hex]→Pic1
[same hex]
And then Pt-Off(0,,A++^8+Pic1) in a loop, it produces interesting results ;)

You can also use that as an "array of sprites", like
[first sprite]→Pic1
[second sprite]
[etc]
Then the Ith sprite can be displayed with Pt-Off(X,Y,I*8+Pic1)
« Last Edit: April 23, 2014, 02:54:41 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 NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1737 on: April 22, 2014, 02:48:42 pm »
I think that I understand everything except of the Pt-Off(0,A++^8+Pic1
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Axe Q&A
« Reply #1738 on: April 22, 2014, 05:42:10 pm »
Ok, so I'm trying to get the user to press second and release it and pause the code until said thing happens.
I tried to things without success :(

Code: [Select]
:While 1
:EndIf getKey(54)
:While 1
:EndIf getKey(54)=0

Code: [Select]
:While 1
:EndIf getKey(54)
:While 1
:End!If getKey(54)
They should both work IMO, any ideas?

EDIT: Putting a Pause 6 into the loops made it work, why do you need a pause in the loops, though?
« Last Edit: April 22, 2014, 05:46:01 pm by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Axe Q&A
« Reply #1739 on: April 22, 2014, 07:29:59 pm »
I think it's a keyboard delay issue. Pause 5 always worked for me but nothing never did.
Keep in mind we have a nice cpu but all the hardware TI added is slow so io is affected a lot. :/