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

Pages: [1] 2
1
Here is my thoughts on it just by reading the documentation. I haven't tried it out since I don't have a link cable on hand.

The documentation itself:
In some commands for the documentation, you give examples of their use and on others you don't. That is fine mostly since you give examples of the ones that need to be explained and not for the simple ones but why does 10 have an example?
For the display character command, what happens if I put in value that isn't in 0-255? You give the user the ability to display any character they want but you never give them a chart to tell them what character goes with what number.
On commands 1 and 9, I'm not exactly sure what you mean by screen and I consider myself pretty experienced in calc-programming. By screen do you mean just the home screen and the graph screen? If so just say homescreen in 9 and not 'currently-displayed screen'. If there is more, list them. I'd detail how that works in a little more thoroughly as well.

The program:
How do you sanitize your input? What does it do if a number that doesn't correspond to a command is entered like 11? How does it deal with decimals? Negative numbers? How about 65537? (2^16 + 1 as it could wrap around and appear to be 1 to your program) How about having a matrix or a list or a string in Ans? An imaginary number? You need to be sure those don't crash or do weird things. Also make sure you sanitize your input variables like x and y. Those can contain imaginary numbers.
I don't get the point of the link port command. Can you name a case where it would be useful to someone programming in basic? I wouldn't give access to the link port to a basic program since the whole point of it (besides doing math) is that you can't screw up your calculator no matter what you do. Ive sent garbage to some of the ports before and you can get nasty stuff like the blue lines of death which can damage the screen or flip the screen upsides down (and that isn't fixed by a ram clear) or swap out the ram page the program is currently running on which will probably crash the calc.
For the move cursor command, you say that the user shouldn't let the cursor go off the edge of the screen. You shouldn't make that the user's task. Remember that your users have no clue how your code works and they can and will feed all kinds of garbage data into your program. I would also offset the cursor's position for the user so it is the same as the basic one. It is so easy to add a 'dec hl' or whatever register you are using and it saves confusion.
Why are some commands toggle and some have a separate on and off? 3 and 4 are an on-off pair but 6 and 9 are just toggle.
Sleep mode seems a little odd. How exactly do you turn the calc off? I know the basic programs can auto-power-off when waiting for input and they don't throw an error when turning on. I imagine that you are handling the sleep inside your program and then when the on button is pressed then it turns back on, returns to the basic program which then errors. If so, there is a way around it. IIRC there is a flag that is set whenever the on button is pressed. Even if you read the keypad to clear the most recently pressed key, that won't clear the flag. If you clear it, then the basic program shouldn't error. Or it could be a port and not a flag. I'm pretty sure it is a flag though.


These are just some thoughts. Seems like a nice program though. You probably learned a lot from making it  :thumbsup:

Oh, I took many functions from Zeda's Opcodes List! By the description of Graph to Screen, i thought no matter what it would display the graph, home screen or graph screen, I'll improve to just "home screen" and I'll probably remove the Sleep Mode function, but add other functions to ANSFUNC, thank you for the reply.  :thumbsup:

2
ANSFUNC
A program to add extra functions to your TI-BASIC programs.
Hello, ANSFUNC is an assembly program that adds extra functions,
you can do some impressive things like outputting a byte to a port, displaying a character that normally wouldn't be accessible by normal means, moving the cursor and more!
So, what are you waiting for, Download it today (Well, if you wanna have extra functions, that is)
Version 1.0.1 released, it's a minor update, only 2 functions added.

Download link
https://drive.google.com/open?id=1qgTcJD9Y3rVYUdnDLbg09a46YLk1UG7K

Why do I hear boss music?

3
ASM / Re: How do I load a symbol into a string?
« on: April 16, 2019, 08:57:15 pm »
I don't know what you mean on where to put the extra or replaced instructions, I tried this
Code: [Select]
bcall(_RclAns)
 bcall(_ConvOP1)
 push af
; Load the name into OP1
 ld hl,$09AA    ; internally, Str0 is represented as 0xAA09
 ld (OP1+1),hl

; Check if it exists and delete if necessary
 rst rFindSym
 jr c,make_str0
 bcall(_DelvarArc)
make_str0:

; Now create Str0 with size 1. Put the name in OP1 first
 ld hl,$09AA
 ld (OP1+1),hl

; Size is 1 byte
 ld hl,1
 bcall(_CreateStrng)

;Pointer to size bytes is in DE. Switch to HL
 ex de,hl

; Don't need the size, so skip those two bytes and get to the start of the data
 inc hl
 Inc hl

; Now write the token
 pop af    ; if using ti83plus.inc. same as $41 or in this specific case, 'A'
 ld (hl),a

;Done!
 ret
But it didn't store anything into Str0, infact it did nothing, I feel ripped off, could you send me the code itself instead of telling to "put instructions in certain locations"?
Also, I don't mean to be rude.

4
ASM / Re: How do I load a symbol into a string?
« on: April 16, 2019, 08:45:56 pm »
Yeah, the idea is to enter a number from 0 to 255 into Ans and then run the program, That way you'll get the corresponding symbol stored into Str0.

5
ASM / Re: How do I load a symbol into a string?
« on: April 16, 2019, 08:38:34 pm »
What I'm trying to say is I want the code to store Ans as a byte into Str0, I'll add a please if needed.

6
ASM / Re: How do I load a symbol into a string?
« on: April 16, 2019, 08:31:58 pm »
 ,Doesn't seem to work, send me the code to store Ans (as a character) into Str0 maybe?

7
ASM / Re: How do I load a symbol into a string?
« on: April 16, 2019, 08:13:34 pm »
No, I wanna put the contents of the A register into Str0, as a character/symbol, not a number.

8
ASM / How do I load a symbol into a string?
« on: April 16, 2019, 07:03:45 pm »
I'm trying to put A into Str0, but I don't know how.

9
ASM / Re: Help with loops?
« on: April 09, 2019, 08:19:33 pm »
Regardless, it still works.

10
Axe / Re: Freq( help?
« on: March 28, 2019, 04:28:17 pm »
Hey, it popped up in the catalog while I was in the TI-OS editor, Thanks.
Edit - I'm having trouble with making sounds, could you please send me a table of each and every note?
like what is C, what is C#, D, and so on?

11
Axe / Re: Freq( help?
« on: March 28, 2019, 02:04:08 pm »
It just brings me to this menu that says
Quote
Iterations:
Xlist:
Ylist:
Period:
Store RegEQ:

12
Axe / Freq( help?
« on: March 28, 2019, 12:30:20 pm »
I have a question, WHERE DO YOU FIND THE Freq( FUNCTION!?!?!?!?

13
ASM / Re: Help with loops?
« on: March 24, 2019, 11:51:19 pm »
Found my own way!
Hex
Code: [Select]
:AsmPrgm
:EF1840
:FE0F
:C8
:18F1
:C9

Assembly
Code: [Select]
bcall $4018
cp 0F
ret z
jr F1
ret

Didn't try your code, but still, thanks for helping me out a little bit.
Also, I tested it on my physical TI-84+ and Wabbitemu, and they both act the same, they both work.

14
ASM / Help with loops?
« on: March 24, 2019, 09:53:49 pm »
I think I learned that jr F1 is to loop an assembly program, but how do you loop an assembly program but have the option to press CLEAR to quit?

15
Grammer / Re: Help with Grammer
« on: March 24, 2019, 05:27:43 pm »
Maybe nevermind, Grammer doesn't work on my physical calculator, but it does work on Wabbitemu...
EDIT: By pressing F1 to F5, I can change the screen, so it kinda works...

Pages: [1] 2