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

Pages: 1 ... 3 4 [5] 6
61
HP Calculators / TETRIS for the HP Prime!
« on: April 04, 2014, 03:59:57 pm »
HP TETRIS!

I've recently updated my HP firmware, and suddenly I can program games in it! My first project is Tetris.

Screenshots:



Features:

  • Classic Tetris gameplay
  • Acurite piece rotation
  • Both soft-drop and hard-drop keys
  • Adjustable difficulty level
  • Original Tetris scoring rules
  • High-score tables - challenge your friends!

Download:

Get this program here!

Future Plans:

  • Placement guides
  • Showing the next piece
  • Better graphics

62
HP Calculators / Re: Let's hack the HP Prime!
« on: September 28, 2013, 09:17:23 am »
I don't know if this is exploitable, but there seems to be some reproducible steps to corrput the memory :

This could be really good, if it didn't overwrite the part of memory we'd use to insert data into when it inevitably crashes. It's take an extremely in-depth knowledge about what memory location goes where, but I guess putting arbitrary data that might or might not be possible.

63
Today's Bug: Doing a numerical expression of the form (1)2 in the CAS results in an error. The CAS does not handle implicit multiplication well.

Today's Suggestion: I wish there was a | key in the Math palette, as I use that character in assumption statements a lot.

64
It might be me being stupid with math, but why does that return "n"? That's a string! Also, I thought the correct format for vectors was [[x],[y]], not [[x][y]]...

65
That seems like a lot of steps to get to something that occurs fairly often. Why can't I just do (polynomial 1)/(polynomial 2) for division?

Is your Simplify level on Off? If it is, remember that the CAS won't change your variables at all. I always have it on Maximum.

66
Today's Bug:




Today's Suggestion: the right arrow character should be a synonym for -> in the CAS. Having -> when a perfectly good UTF character exists is quite odd.

67
The G1-G9 are really meant for temporary scratch locations. For example, they aren't saved on a power cycle or sent to the pc. However, it probably would be good to make sure the other commands work with local or exported grobs. Thanks for the reminder.

Oh. I only said this because it errored out when I tried to use a local variable as a grob.

...Of course, And that's only because I'm still afflicted with the 'error out every time' bug. I'm an idiot. So I guess there's more than 10 grobs after all?

68
I had a bug for today, but I forgot it in the hours I've been away from these forums. So I'll just tell you some places where the Help doesn't show up!

Today's bug: There's no Help section when pressing the Help button for the Characters menu, any of the coose boxes (templates, the ! menu, etc.) or the Memory Manager.

Today's Suggestion: There's only 10 graphic variables ever?? If we want to use sprites, we can only use the 10; if we want more, we have to hot-swap them out using DIMGROB, which can't possibly be memory/speed efficient.

69
Today's bug: Okay, this one's really hard to describe, as it's apparently non-deterministic. It's similar to DJ_O's issues. At some point in time, SUBGROB and DIMGROB just started failing to work. They were working as documented earlier; now they just give me an 'invalid input' error whenever I try to use them. In one case, the use of SUBGROB, instead of giving an error, just stopped program execution dead and returned immediately, inside an infinite loop no less! Debugging them is even worse. Sometimes when going over one of the error statements in the debugger, the calculator will just crash, but not all the time.

Today's suggestion: It's about debugging. When you hit 'Cont' on the debugger, it just goes along like normal. If there's an error, it gives the message as usual, but the error's almost useless as no line of code is pointed to. Getting the line of errors is the point of debugging! Maybe if Cont just stepped through really quickly instead of just running the program as usual, we could get the line of the errors without pressing 'Step' a lot or setting up a lot of breakpoints.

70
This one's more a suggestion than a bug: Despite being in CAS mode, using the Define box only creates 'normal' functions, not xcas ones.

Another bug: This program errors with "Invalid input" when I hit ENTER, yet works fine in debug mode:

Code: [Select]
EXPORT CURSOR()
BEGIN
LOCAL X,Y,K,C,P;
0▶X;0▶Y;0▶P;
WHILE 1 DO
 //WAIT()▶K;
 WAIT(.05);
 IF ISKEYDOWN(4) THEN
  RETURN {X,Y};
 END;
 IF ISKEYDOWN(2) THEN
  GETPIX_P(G0,X,Y)▶C;
  BITNOT(C)▶C;
  PIXON_P(G0,X,Y,C);
  Y-1▶Y;
  GETPIX_P(G0,X,Y)▶C;
  BITNOT(C)▶C;
  PIXON_P(G0,X,Y,C);
 END;
 IF ISKEYDOWN(12) THEN
  GETPIX_P(G0,X,Y)▶C;
  BITNOT(C)▶C;
  PIXON_P(G0,X,Y,C);
  Y+1▶Y;
  GETPIX_P(G0,X,Y)▶C;
  BITNOT(C)▶C;
  PIXON_P(G0,X,Y,C);
 END;
 IF ISKEYDOWN(7) THEN
  GETPIX_P(G0,X,Y)▶C;
  BITNOT(C)▶C;
  PIXON_P(G0,X,Y,C);
  X-1▶X;
  GETPIX_P(G0,X,Y)▶C;
  BITNOT(C)▶C;
  PIXON_P(G0,X,Y,C);
 END;
 IF ISKEYDOWN(8) THEN
  GETPIX_P(G0,X,Y)▶C;
  BITNOT(C)▶C;
  PIXON_P(G0,X,Y,C);
  X+1▶X;
  GETPIX_P(G0,X,Y)▶C;
  BITNOT(C)▶C;
  PIXON_P(G0,X,Y,C);
 END;
 IF ISKEYDOWN(30) THEN
  REPEAT
   MOUSE()▶P;
   P[1]▶P;
  UNTIL P[5]==#1;
  B→R(P[1])▶X;
  B→R(P[2])▶Y;
 END;
 END;
END;
END;

71
Another bug. This time, it's with units. I think the image says it all:




And another suggestion, this time with the Views key. Okay, so we have Numeric, Plot and Symbolic views, right? Well, we have two different uses of the term view: One, in the 3 basic screens, and another in how these screens can be looked at. This is needlessly confusing terminology. Maybe if the Views key lived up to its name by displaying all the available views, including the views you can get with the current Views key. So, for example, the Function app Views menu would look like this:
  • Symbolic View
  • Plot View: Autoscale
  • Plot View: Decimal
  • Plot View: Integer
  • Plot View: Trig
  • Numeric View
  • Split View: Plot/Plot
  • Split View: Plot/Numeric
Or maybe those 'plot view' and 'split view' menus could be sub-menus. I don't know, you're the HP official here Tim.

72
Here's a bug: When the calculator is in the Dark GUI setting, the labels created in the Numeric view of the Geometry app appear behind the Light GUI's background.



Another one: In the emulator, the ? prefix in the CAS is a synonym for xcas's findhelp function, which does nothing on the calc. In the physical calculator, however, using it causes a crash.

73
HP Calculators / Re: Let's hack the HP Prime!
« on: September 22, 2013, 03:25:13 pm »
As a general comment here, thanks for the details on things.

Glad to help! Being an avid HP user, I'd be glad any day to help make the OS better.

When you find a spelling/grammatical issue with the built in help, please email me and I'll be sure it gets resolved in the next revision.

Oh, I've come across multiple minor Help issues; I'll be certain to forward a list to you soon.

74
News / Re: HP-Prime firmware and softwares leaked to the Internet
« on: September 22, 2013, 12:03:07 pm »
So, we now have the SDK OS, so now we can find out what it does. Has anyone successfully loaded the SDK OS on their calculators?

75
HP Calculators / Re: Let's hack the HP Prime!
« on: September 22, 2013, 10:07:09 am »
Here's a good example of the oddities of the CAS. Let's try using the @ sign in an expression. Nothing in the documentation says anything about the @ sign in an expression, so it'll be a syntax error if we use it, right?





...Wrong. It instead gives us double_deux_points, which is something I've never heard of, and the Catalog hasn't, either.



Copying this mysterious input does not help resolve questions. It's just another undocumented CAS convention. Re-inputting the same exact output gives us just 5, but copying the 'just' 5 gives us at::5 again. Will the wonders never cease?

EDIT: A deux point is French for a colon? Well, that's nice and literal.

EDIT 2: I installed the SDK OS. Well, one difference is this:


EDIT 3: I cannot seem to reproduce the above behavior, so it might not be an SDK thing. Just a bug thing. Also, it seems that ON+Help seems to do something, but I can't tell what. Anyone else with a non-SDK Os, does ON+Help not give you the Help screen like it should if ON+Help didn't do anything?

EDIT 4: Okay, on another note, I extracted all the known localized strings using the STRINGFROMID function. I thought there might be some secrets or whatnot in there. It's available here. Some entries in this list implies that the HP Connectivity Kit program exists inside the calculator, oddly enough.

Pages: 1 ... 3 4 [5] 6