Author Topic: What is wrong with my Axiom?  (Read 3421 times)

0 Members and 1 Guest are viewing this topic.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
What is wrong with my Axiom?
« on: May 19, 2011, 06:39:45 pm »
I've been working on an Axiom for an even faster version of the getKey routine, but specific to the 4 arrow keys.
However, whenever I try to use it, it says it's a bad Axiom. What am I doing wrong?
Here's the source:
Code: [Select]
.nolist
#include "Axe.inc"
#include "ti83plus.inc"
.list

.dw AXM_HEADER

.dw Ax1_End
.db AXM_ALL
.db tGetKey, 0
.db AXM_RRMOD
.db 0
.org 0
LD     A, %11111110
    OUT    (1), A
    ld hl,0
    IN     A, (1)
    CP     0
    jr z,Ax1_End
    inc l
    bit 0,a ;down
    jr z,Ax1_End
    inc l
    bit 1,a ;left
    jr z,Ax1_End
    inc l
    bit 2,a ;right
    jr z,Ax1_End
    inc l ;up
Ax1_End:

.dw $0000
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 Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: What is wrong with my Axiom?
« Reply #1 on: May 19, 2011, 07:01:31 pm »
1) By the looks of your code, you are using SPASM right?  TASM doesn't hande the .org statement correctly so that wouldn't work.
2) If compiled to a program, it must be in RAM so that Axe can convert it to an appvar for you.
3) You cannot use tGetkey as your token since Axe already uses this, regardless of the rr modifier.

Everything else looks correct though...
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: What is wrong with my Axiom?
« Reply #2 on: May 19, 2011, 07:03:28 pm »
Yes, I'm using spasm, I'll keep the must be in ram thing in mind, and what token should I use then?
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 Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: What is wrong with my Axiom?
« Reply #3 on: May 19, 2011, 07:09:09 pm »
Use the gcd( token (Greatest Common Denominator, found in MATH, RIGHT, 9).

Also, out of curiosity, how far down "ti83plus.inc" are the token equates defined? I can never find them.
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: What is wrong with my Axiom?
« Reply #4 on: May 19, 2011, 07:09:46 pm »
In mine, at the very bottom.

EDIT: I decided to go with ZoomIn
« Last Edit: May 19, 2011, 07:10:31 pm by Binder News »
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 Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: What is wrong with my Axiom?
« Reply #5 on: May 19, 2011, 07:10:07 pm »
Yes, I'm using spasm, I'll keep the must be in ram thing in mind, and what token should I use then?

Any unused token is fine, I definitely recommend tokens on the [vars] "Zoom..." menu when possible since those are guaranteed no to used by Axe in any future update.  Also, only the initial program has to be in ram.  Once its converted to an appvar, it can be in ram or archive.  You could bypass the conversion yourself actually if you change one of the bytes in the 8xp file, but that's more complicated.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: What is wrong with my Axiom?
« Reply #6 on: May 19, 2011, 07:12:36 pm »
I know. I've actually written .8xp writers in a couple of different languages.

EDIT: Yay, got it to work. Thanks.
« Last Edit: May 19, 2011, 07:14:31 pm by Binder News »
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: