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 - Quigibo

Pages: 1 ... 37 38 [39] 40 41 ... 135
571
The Axe Parser Project / Re: Bug Reports
« on: January 11, 2011, 11:19:36 pm »
That's true... happybobjr, have you ran ALCDFIX first?  There's also something like that built into DCS now that does the same thing.

572
There is a really amazing algorithm for finding the area of ANY closed shape, not just triangles, if you know the coordinates of all the verticies.  For instance, take any pentagon with verticies (X1,Y1) through (X5,Y5).  You can find the area by listing the pairs clockwise and making the first point appear at the end too:

Code: [Select]
X1 Y1
X2 Y2
X3 Y3
X4 Y4
X5 Y5
X1 Y1

Then you multiply diagonally down on each side and find the sums of those 2 columns:

Code: [Select]
       X1 Y1
Y1*X2 / X2 Y2 \ X1*Y2
Y2*X3 / X3 Y3 \ X2*Y3
Y3*X4 / X4 Y4 \ X3*Y4
Y4*X5 / X5 Y5 \ X4*Y5
Y5*X1 / X1 Y1 \ X5*Y1
______         ______
SumLeft        SumRight

The area of the shape is simply the difference of these 2 sums divided by 2:  |SumLeft - SumRight|/2

It even works if the lines pass through each other or the shape has holes in it.

EDIT: Oops, forgot the /2 hehe

573
The Axe Parser Project / Re: Bug Reports
« on: January 11, 2011, 08:04:19 pm »
I assume you're talking about the 3 level grayscale right?

Okay, so it looks like the extra delay helped, but it might still need to be just slightly longer by 1 or 2 T-States.  I wish TI could just make their hardware more consistent :(

574
Axe / Re: What is wrong with this code? :(
« on: January 11, 2011, 08:00:16 pm »
That only works for static pointers becasue those don't take up any memory.  I only have a limited number of variables because I want to leave users with enough free ram to play around with.  If you need more variables, you can always use these ram locations manually: {L1+10}r for instance will act exactly the same as a regular variable (make that 10 any constant you want as long as it fits in ram)

575
The Axe Parser Project / Re: Features Wishlist
« on: January 11, 2011, 04:58:03 pm »
There is actually a pretty easy way to do break and continue.  You can put your loop in a subroutine and then call it from the program.  Using Return then acts like a break and using a goto to the subroutine acts like a continue.

Code: [Select]
While A
 While B
  If C
   Break
  End
  If D
   Continue
  End
 End
End


.The above can become:

While A
 sub(LOP)
End

Lbl LOP
While B
 ReturnIf C
 If D
  Goto LOP
 End
End

576
The Axe Parser Project / Re: Bug Reports
« on: January 10, 2011, 07:17:12 pm »
The app length bug was fixed in 0.4.8

Also, this is fairly random and unreproducible, but sometimes I will run into random BAD SYMBOL errors while compiling (usually an archived program).

That bug was supposed to be fixed in 0.4.7  Have you had that problem in the later versions?

Quote
Sometimes when I unarchive it the compile goes smoothly and error free. More rarely, it will throw another BAD SYMBOL, and upon pressing prgm to goto, the entire program after a certain point seems to be corrupted (lots of random tokens, etc.) I remember that the goto-prgm thing used to be unstable with large programs. What constitutes a large program: one with lots of library files whose compiled code comes out to 16kb count? (The main program is 5 kb and the largest library is 3kb...and the corruption will usually happen to any of them, not just the main program)

This is a problem I still can't figure out.  The OS must be handling large files differently than small ones for some reason because I pass control to the OS before the actual scroll.  If anyone knows more information about the BASIC editor context variables, I could definitely use your help!

577
Very nice!  None of my text editors can read the file properly but I can still kind of see some of it.  This would definitely be better in the documentation than the AutoOps file.  It seems difficult to maintain and keep updated though since the commands change so often.

578
The Axe Parser Project / Re: Features Wishlist
« on: January 09, 2011, 09:14:08 pm »
Oops, you're right, I forgot to update that.  Fixed.

579
The Axe Parser Project / Re: Features Wishlist
« on: January 09, 2011, 07:57:37 pm »
Runer, my custom interrupts don't use the shadow registers for af.  They push and pop af instead specifically for the purpose of making the grayscale routines compatible inside interrupts. :)

580
The Axe Parser Project / Re: MAX SYMBOLS error
« on: January 09, 2011, 07:49:11 pm »
If the subroutine is at the end of your code, it can't kick those calls out of the table until it finally encounters the label.  Putting the subroutines at the start of the program can fix that if you use them often enough.  Just make the first line of code a goto to skip over your subroutines.

Or better yet, put them in an include library so they don't crowd as much.

581
The Axe Parser Project / Re: Axe Parser
« on: January 09, 2011, 03:32:04 pm »
So the new Axiom SDK is out.  If anyone wants to attempt one, you will definitely get to try it out on 1.0.0 before the official release.  The inc file is not totally finished because I haven't added the new token equates yet, but I'll get to that soon.  Let me know if you have any questions about the Axiom format, some things about it might be confusing.  One thing I'll mention is what the "Stored to" command modifier is.  EXP->DispGraph is a one argument version of this and EXP->float{EXP} is a 2 argument version.

582
The Axe Parser Project / Re: Latest Updates (***DO NOT POST HERE!***)
« on: January 09, 2011, 07:18:25 am »
Axe Parser
Delta 0.4.8


Just a little patch before the stable release.

New Features:
  • A few more optimizations
  • Multi-line comments!
  • Axiom SDK updated and probably finalized

Changed:
  • Fixed 3 Level grayscale routine hopefully
  • Fixed reading protected programs from archive
  • Fixed application size field
  • Line drawing off-screen does not draw the line.
  • A few other minor bug fixes.

583
The Axe Parser Project / Re: MAX SYMBOLS error
« on: January 09, 2011, 12:50:03 am »
Almost:

Code: [Select]
"Hello"[20574F524C4400]->Str1
Disp Str1

584
The Axe Parser Project / Re: MAX SYMBOLS error
« on: January 09, 2011, 12:39:11 am »
No... but you can add the zero yourself with [00] when you aren't using the store.  Also, the store should be on the first line of text, not the last one.

585
The Axe Parser Project / Re: Features Wishlist
« on: January 09, 2011, 12:29:54 am »
I'd like to request de-referencing routines, so I could dereference a label, or (even better) dereference something like DispGraph.

This is available for Axioms.  You would have to use inline assembly to call them anyway if it was in pure Axe so this system makes it more convenient as a whole.

Pages: 1 ... 37 38 [39] 40 41 ... 135