Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
23 May, 2013, 17:44:28 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: What is wrong with my Axiom? -  (Read 877 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Binder News
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 13 May, 2013, 22:50:58
Date Registered: 26 October, 2010, 22:05:05
Location: In a pit on an island somewhere in the Atlantic.
Posts: 779


Topic starter
Total Post Ratings: +43

View Profile
« on: 20 May, 2011, 00:39:45 »
0

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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.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
Logged

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:




Quigibo
The Executioner
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 21 May, 2013, 02:03:21
Date Registered: 22 January, 2010, 05:02:37
Location: Los Angeles
Posts: 2022


Total Post Ratings: +1019

View Profile
« Reply #1 on: 20 May, 2011, 01:01:31 »
0

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...
Logged

___Axe_Parser___
Today the calculator, tomorrow the world!
Binder News
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 13 May, 2013, 22:50:58
Date Registered: 26 October, 2010, 22:05:05
Location: In a pit on an island somewhere in the Atlantic.
Posts: 779


Topic starter
Total Post Ratings: +43

View Profile
« Reply #2 on: 20 May, 2011, 01:03:28 »
0

Yes, I'm using spasm, I'll keep the must be in ram thing in mind, and what token should I use then?
Logged

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:




Compynerd255
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 29 April, 2013, 23:45:47
Date Registered: 18 December, 2010, 22:35:39
Location: Between chair and keyboard
Posts: 329


Total Post Ratings: +49

View Profile WWW
« Reply #3 on: 20 May, 2011, 01:09:09 »
0

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.
Logged

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


Binder News
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 13 May, 2013, 22:50:58
Date Registered: 26 October, 2010, 22:05:05
Location: In a pit on an island somewhere in the Atlantic.
Posts: 779


Topic starter
Total Post Ratings: +43

View Profile
« Reply #4 on: 20 May, 2011, 01:09:46 »
0

In mine, at the very bottom.

EDIT: I decided to go with ZoomIn
« Last Edit: 20 May, 2011, 01:10:31 by Binder News » Logged

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:




Quigibo
The Executioner
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 21 May, 2013, 02:03:21
Date Registered: 22 January, 2010, 05:02:37
Location: Los Angeles
Posts: 2022


Total Post Ratings: +1019

View Profile
« Reply #5 on: 20 May, 2011, 01:10:07 »
0

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.
Logged

___Axe_Parser___
Today the calculator, tomorrow the world!
Binder News
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 13 May, 2013, 22:50:58
Date Registered: 26 October, 2010, 22:05:05
Location: In a pit on an island somewhere in the Atlantic.
Posts: 779


Topic starter
Total Post Ratings: +43

View Profile
« Reply #6 on: 20 May, 2011, 01:12:36 »
0

I know. I've actually written .8xp writers in a couple of different languages.

EDIT: Yay, got it to work. Thanks.
« Last Edit: 20 May, 2011, 01:14:31 by Binder News » Logged

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:




Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.263 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.