• Axe Q&A 5 5
Currently:  

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

0 Members and 6 Guests are viewing this topic.

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Axe Q&A
« Reply #975 on: November 13, 2011, 02:19:49 pm »
What is the maximum program size? I'm at 7000 bytes now.
I think it is 8000 of code, not including data. But I am probably wrong :P

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #976 on: November 13, 2011, 02:21:13 pm »
Yeah, about 8100, not including data, as mrmprog said.

But you can use CrabCake or Fullrene to make larger programs.


But that doesn't answer my question :P
« Last Edit: November 13, 2011, 02:22:06 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 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 #977 on: November 13, 2011, 07:50:47 pm »
Wait, I saw somewhere that we could quit the program with Returnr but it crashes when I try ???. I thought it might be because of CrabCake, but I don't know. Could it be ?
Quote from: Axe Docs
Returnr|Emergency exits the program from within any number of nested calls.
;)

What is the maximum program size? I'm at 7000 bytes now.
It's 8150-something if you're compiling for 'No Shell', 8811 otherwise.
« Last Edit: November 13, 2011, 07:55:05 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Axe Q&A
« Reply #978 on: November 13, 2011, 07:58:24 pm »
Wait, I saw somewhere that we could quit the program with Returnr but it crashes when I try ???. I thought it might be because of CrabCake, but I don't know. Could it be ?
Quote from: Axe Docs
Returnr|Emergency exits the program from within any number of nested calls.
;)

What is the maximum program size? I'm at 7000 bytes now.
It's 8150-something if you're compiling for 'No Shell', 8811 otherwise.
I believe it is 8192, but yeah, 8811 for shelled programs.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #979 on: November 13, 2011, 08:17:21 pm »
Oh, says it on the first post :P

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #980 on: November 14, 2011, 01:13:15 am »
Wait, I saw somewhere that we could quit the program with Returnr but it crashes when I try ???. I thought it might be because of CrabCake, but I don't know. Could it be ?
Quote from: Axe Docs
Returnr|Emergency exits the program from within any number of nested calls.
;)
Erm, I have problems translating "from within any number of nested calls" D:
In fact, I tried Returnr in a test program, and it works, but not in Pokemon, this is why I thought it might be because of CrabCake  :-\
« Last Edit: November 14, 2011, 01:13:26 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 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: Axe Q&A
« Reply #981 on: November 14, 2011, 04:04:11 am »
Wait, I saw somewhere that we could quit the program with Returnr but it crashes when I try ???. I thought it might be because of CrabCake, but I don't know. Could it be ?
Quote from: Axe Docs
Returnr|Emergency exits the program from within any number of nested calls.
;)

What is the maximum program size? I'm at 7000 bytes now.
It's 8150-something if you're compiling for 'No Shell', 8811 otherwise.
I believe it is 8192, but yeah, 8811 for shelled programs.
Unless you use Fullrene/Crabcake, which gets rid of the limit, right?
« Last Edit: November 14, 2011, 04:04:24 am by DJ_O »

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 #982 on: November 14, 2011, 02:53:10 pm »
[/pyramid] :P
Yes.

Returnr basically is an Emergency Exit, not quitting properly but suddenly, not doing cleanup or anything.  Think of it as a "last resort" or whatever.  Usually it's better to just use Return :)

EDIT: Iirc, for "Nested calls" think "subroutines".
« Last Edit: November 14, 2011, 08:14:04 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe Q&A
« Reply #983 on: November 14, 2011, 02:55:36 pm »
Unless you use Fullrene/Crabcake, which gets rid of the limit, right?
what are those?

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: Axe Q&A
« Reply #984 on: November 14, 2011, 03:22:12 pm »
They are axioms that gets rid of the 8811/8192 KB code limit, if I remember.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe Q&A
« Reply #985 on: November 14, 2011, 03:23:21 pm »
They are axioms that gets rid of the 8811/8192 KB code limit, if I remember.
ooh that's cool...
* parser padwan checks the ticalc files for it... :D

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #986 on: November 14, 2011, 04:24:58 pm »
If I get too high I'll try Fullrene.

Can any figure out what's wrong with this?
My game has levels and it always skips level 2. Once you start it, it automatically says you win. The unique thing about level two is that it has money requirements to win it, not enemy kill requirements.

Code: [Select]
.A is for level
If A=1
.The first argument is the money requirement
GAME(0,6,0,4,3,1
ElseIf A=2
GAME(300,0,0,4,3,1
ElseIf A=3
(goes on with different args 'till A=8)
End
.Lotsa stuff
Lbl GAME
.Lotsa stuff
For(P,0,r5)
.Lotsa stuff
If (r2<J) and (r1<G) and (r3<L)
.G is the amount of money the user has
A++
G-r1->G
1->N
.Level up and return
Return
End
DispGraph
End


Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe Q&A
« Reply #987 on: November 15, 2011, 05:11:49 pm »
lol I just had to use crabcake because my program is 10 kb XD

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: Axe Q&A
« Reply #988 on: November 16, 2011, 10:15:33 am »
I'd like to know how people make their intro screen for their game.
Is it a separate picture or is it in the program? Sorry if it sounds kinda stupid but I've not really any experience with pictures on the z80, only sprites.
I mean something like this at the beginning of my game(only the title screen):

Thanks in advance. :)
« Last Edit: November 16, 2011, 10:16:19 am by Stefan Bauwens »


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Axe Q&A
« Reply #989 on: November 16, 2011, 01:15:02 pm »
You need to get the picture as TI-OS-Picture-Variable (Pic0 - Pic9).

In your Axe program file you simply write:

Code: [Select]
[Pic#]->A .this puts your TI-OS-PIC# in the ram and stores the beginning address to a.

Copy(A,L6,768) .this copies the 768 bytes to the main buffer to display the picture.