Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bored_student

Pages: 1 2 [3] 4
31
Axe / Re: Turn off Calc and Exit Program in Axe?
« on: November 21, 2012, 10:58:18 am »
Quote
OFFSCRPT.8xv (appVar) gets copied to $8001 every time the calculator turns off. This catches both 2ND + ON as well as APD. So instead of going to APD, it can just display your screen saver.

My OFFSCRPT always crashs the calc. The code is copied to $8001 and executed. But every times it reaches bcall(_jForceCMDNoChar) the calculator simply doesn't react anymore


I leaved the
bit   4, (iy + 8 )
out because this way the bit is set always and my code is never executed

32
ASM / Re: Some basic questions
« on: November 08, 2012, 02:28:11 pm »
It is a problem for me because if I want to add some ASM Code in an Axe Programm with the Asm() command, I don't really know where the ASM code is stored.

33
ASM / Re: Some basic questions
« on: November 08, 2012, 09:37:27 am »
By the way:
  Is there a way to store the current value of the PC register somewhere else

34
ASM / Re: Some basic questions
« on: November 07, 2012, 06:21:56 am »
I always thought the memory management on the TI 83 Plus is dynamic so that the data is stored somewhere where you have free RAM  <_<

35
ASM / Re: Some basic questions
« on: November 07, 2012, 06:12:44 am »
a explanation in the tutorial Deep Thought gave me says:
http://eeems.omnimaga.org/files/Resources/Tutorials/ASMin28Days/lesson/day02.html

Quote
.org number    Specifies where in memory the program is loaded into (not exactly true), which is always $9D95.

Why is it always $9D95?
I mean if there is stored something other this "other" will be overwritten by the program code.

Deep Thought also mentioned this location in his SMC tutorial:
http://www.omnimaga.org/index.php?action=articles;sa=view;article=91
Quote
You also know the absolute location of the start of the program (it's E9D93).


36
ASM / Re: Some basic questions
« on: November 06, 2012, 11:45:01 am »
Shouldn't be the SPASM.EXE in the 'tasm' directory

37
ASM / Re: Some basic questions
« on: November 06, 2012, 07:50:32 am »
I think SPASM is what I will use.
But is there any readme or something to learn how to use it?

If you also decide to go with this setup, this is what needs to go in your asm.bat file that you make on the first day. This is because spasm has a different command line syntax than tasm:

to be honest I don't really know what this code does and where to put it.
(I have only small experience with batch code)

38
Axe / Re: Optimization and adding AI
« on: November 04, 2012, 02:20:08 pm »
Yeah he really made it. So I have been wrong ::)
I will test the AI as soon as possible cause I once tried it on my one on a TI 83 Plus but I gave up after a while <_<

respect to thepenguin77  ;D

39
ASM / Some basic questions
« on: November 04, 2012, 01:51:33 pm »
Yeah I decided to learn ASM so I have read a lot but some questions still remained:  ???
1. What compiler/assembler should I use
  TI recommens the ZDS but I think it's a bit environment and I only need a compiler with documentation
2. Since the code depends on the compiler I need some documentation (not the TI hardware and routines guides
  but the basic commands like "call" or "ld"
3. Some questions that will appear when I start making my first errors :(

40
Axe / Re: Optimization and adding AI
« on: November 04, 2012, 01:36:22 pm »
I meant the AI the program that plays against you.
If that really exist you must show me  *.*

When I did it with Delphi 5 last year my CPU (in PC) needed 30 sekunds to decide which move to do altough it only "thinks" 5 moves depht.


Optimized, and bugfixed at the same time ;D
Remember that placing constants at the end of expressions is optimal, and also remember Axe order of operations is straight-up left to right (unless there are parens)
Yes I forgot...

41
Axe / Re: Optimization and adding AI
« on: November 01, 2012, 03:56:39 pm »
Code: [Select]
[3844828282443800]->Pic1P9
[3244828282443800]->Pic1P10
[3244828282443800]->Pic1P11
[3244828282443800]->Pic1P12
[3244828282443800]->Pic1P13
[3244828282443800]->Pic1P14
[3244828282443800]->Pic1P15
[3244828282443800]->Pic1P16
[387CFEFEFE7C3800]->Pic2P
[387CFEFEFE7C3800]->Pic2P10
[387CFEFEFE7C3800]->Pic2P11
[387CFEFEFE7C3800]->Pic2P12
[387CFEFEFE7C3800]->Pic2P13
[387CFEFEFE7C3800]->Pic2P14
[387CFEFEFE7C3800]->Pic2P15
[387CFEFEFE7C3800]->Pic2P16
[3068A4A484483000]->Pic1B
[1058DCDCFC783000]->Pic2B
[609088482848F800]->Pic1N
[60F0F87838787800]->Pic2N
[D6D67C2828287C00]->Pic1R
[D6D67C3838387C00]->Pic2R
[9254382828287C00]->Pic1Q
[9254383838387C00]->Pic2Q
[3828EE82EE283800]->Pic1K
[3838FEFEFE383800]->Pic2K
[FFFFFFFFFFFFFFFF]->Pic3

I think this are the sprites for the pieces.
You could call them by a command like
Code: [Select]
PtnOn(X,Y,Pic1P9+I*8
where I is the number of the sprite you want to draw.


...and adding AI.

I once made a chess AI on my PC but I doubt it will be possible with Axe on calculators
The calcs are to slow and they haven't enougth memory

42
Axe / Re: static vars
« on: November 01, 2012, 02:53:44 pm »
You might find reading the documents here useful: http://axe.eeems.ca/
This are the files included in the Axe download but I cant find something like
const -> °Var 

however now I know it
thank you both you have helped me a lot :)

43
Axe / Re: static vars
« on: October 31, 2012, 01:03:40 pm »
thank you a lot  ;D

I have never read that you can do something like that   O.O
So I can easily make new vars.
How many characters can I use to name them and
from where do you know such things?

44
Axe / static vars
« on: October 31, 2012, 12:22:17 pm »
I wanted to make my program code more clear.
So I decided to use static vars that replace some L1+... commands:
example:
Code: [Select]
L1+12 -> GDB0XVAL
L1+14 -> GDB0YVAL
...
X -> {GDB0XVAL}R
Y -> {GDB0YVAL}R

Is this slower than this:
Code: [Select]
X -> {L1+12}R
Y -> {L1+14}R
or is it the same after compiling

45
Oh yes I've found the tutorial from Deep Thought about Self Modifying Code :thumbsup:

Pages: 1 2 [3] 4