Author Topic: Rocket Ninja Cyborg  (Read 2985 times)

0 Members and 1 Guest are viewing this topic.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Rocket Ninja Cyborg
« on: February 05, 2011, 08:03:06 pm »
I am attempting it in axe and basic with UsbDrv8x.
(also holing high score or the month)
http://www.eiswuxe.de/games/rocket-ninja-cyborg/

I figure i will have many questions so I night as well make a topic.

:P
Question.  How could i relay a byte of info between a basic program and it's asm (axe) subprograms?

Edit:  could i use
Getcalc("varX")+8->Q
« Last Edit: February 05, 2011, 08:04:31 pm by Happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Rocket Ninja Cyborg
« Reply #1 on: February 05, 2011, 08:10:16 pm »
If you wanna reference a real var in Axe try this:
Code: [Select]
GetCalc("varX")->P
float{P-2}->Q
I believe that could be optimized to:
Code: [Select]
GetCalc("varX")
float{-2}->Q
but I could be wrong.
« Last Edit: February 05, 2011, 08:10:33 pm by FinaleTI »


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Rocket Ninja Cyborg
« Reply #2 on: February 05, 2011, 08:17:08 pm »
thank you.

Why -2?

Edit: It's not working for me
« Last Edit: February 05, 2011, 08:48:31 pm by Happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Rocket Ninja Cyborg
« Reply #3 on: February 05, 2011, 08:36:02 pm »
I don't exactly remember why, but you have to subtract 2 from the pointer before converting it to or from a float in order to reference it with Axe.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Rocket Ninja Cyborg
« Reply #4 on: February 05, 2011, 08:56:48 pm »
That's because Axe returns the pointer+2 to account for the size bytes present in most programs/appvars. However, because floats are always 9 bytes large, they don't have those extra 2 bytes.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





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: Rocket Ninja Cyborg
« Reply #5 on: February 06, 2011, 02:12:12 am »
Hmm that would be a nice game indeed. Darl181 had a jetpack style engine if I remember but there were no platforms and such.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Rocket Ninja Cyborg
« Reply #6 on: February 06, 2011, 09:02:06 am »
vertical and horizontal velocity engines FTW!
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Rocket Ninja Cyborg
« Reply #7 on: February 06, 2011, 10:46:27 am »
I was unable to figure out how to transfer data between the basic part and the axe part.
I am also not familiar how to call usbdrv8x through asm.

I think since I have it working, even if it's slow, I will keep it the way it is.  Then I will fix it if i get everything else coded.
This is looking even more possible now that i am starting to feel better.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________