Post Reply 
Access Matrix Functions From Sharp BASIC?
08-04-2023, 01:20 AM
Post: #1
Access Matrix Functions From Sharp BASIC?
Quite a while back, there was a post detailing how to access the built-in matrix functions from a BASIC program on a particular model of a Sharp pocket computer. I looked everywhere I could think of but I can't find the thread. Can anyone help?

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
08-04-2023, 02:41 AM
Post: #2
RE: Access Matrix Functions From Sharp BASIC?
.
Sure, see message #45 and most specially message #51 in this ancient thread.

Hope that helps.
V.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
08-04-2023, 05:09 AM
Post: #3
RE: Access Matrix Functions From Sharp BASIC?
(08-04-2023 02:41 AM)Valentin Albillo Wrote:  .
Sure, see message #45 and most specially message #51 in this ancient thread.

Hope that helps.
V.

Thanks! Now I just have to see if Hrast has created a table of entry points for the PC-E500S.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
08-09-2023, 11:58 AM
Post: #4
RE: Access Matrix Functions From Sharp BASIC?
(08-04-2023 05:09 AM)toml_12953 Wrote:  Thanks! Now I just have to see if Hrast has created a table of entry points for the PC-E500S.

No, just PC-1403. And even on 1403 (some) addresses are probably different with different ROM revisions (if there are any).

https://www.hrastprogrammer.com/hrastwood/
https://hrastprogrammer.bandcamp.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
08-13-2023, 11:51 PM
Post: #5
RE: Access Matrix Functions From Sharp BASIC?
(08-04-2023 05:09 AM)toml_12953 Wrote:  Thanks! Now I just have to see if Hrast has created a table of entry points for the PC-E500S.

You will find the procedure in the PC-E500 technical manual, that you can download here, among other interesting documents:
https://github.com/Robert-van-Engelen/Fo.../resources
The relevant pages are 31 and 79-82.

So, for example, if you want the determinant of the matrix X:
POKE &BFE00, 9, 1, &4C : CALL &FFFDC
And the result is in the variable X

Then, if you want the inverse of X:
POKE &BFE02, &45 : CALL &FFFDC

Now, if you want to store the new matrix X in the matrix ME:
POKE &BFE02, &52, ASC("E") : CALL &FFFDC
And so on...

Jean-Charles
Find all posts by this user
Quote this message in a reply
08-14-2023, 12:01 AM
Post: #6
RE: Access Matrix Functions From Sharp BASIC?
(08-13-2023 11:51 PM)Helix Wrote:  
(08-04-2023 05:09 AM)toml_12953 Wrote:  Thanks! Now I just have to see if Hrast has created a table of entry points for the PC-E500S.

You will find the procedure in the PC-E500 technical manual, that you can download here, among other interesting documents:
https://github.com/Robert-van-Engelen/Fo.../resources
The relevant pages are 31 and 79-82.

Fantastic! Thanks so much.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
08-14-2023, 03:30 AM
Post: #7
RE: Access Matrix Functions From Sharp BASIC?
(08-13-2023 11:51 PM)Helix Wrote:  
(08-04-2023 05:09 AM)toml_12953 Wrote:  Thanks! Now I just have to see if Hrast has created a table of entry points for the PC-E500S.

You will find the procedure in the PC-E500 technical manual, that you can download here, among other interesting documents:
https://github.com/Robert-van-Engelen/Fo.../resources
The relevant pages are 31 and 79-82.

Do you know what "scholar" means? is it like "scalar"?

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
08-14-2023, 09:15 PM
Post: #8
RE: Access Matrix Functions From Sharp BASIC?
(08-14-2023 03:30 AM)toml_12953 Wrote:  Do you know what "scholar" means? is it like "scalar"?

Yes, "scholar" means scalar. Smile For these operations, you store the value of the scalar in the variable X.
There are sometimes weird formulations in this document, perhaps because it was written by Japanese people?
I was intrigued by the "reversion of symbols" function. In fact, it’s the +/- operation in matrix mode.

I have not tested all the matrix functions, but they should work.

Jean-Charles
Find all posts by this user
Quote this message in a reply
08-15-2023, 02:43 AM
Post: #9
RE: Access Matrix Functions From Sharp BASIC?
(08-14-2023 09:15 PM)Helix Wrote:  
(08-14-2023 03:30 AM)toml_12953 Wrote:  Do you know what "scholar" means? is it like "scalar"?

Yes, "scholar" means scalar. Smile For these operations, you store the value of the scalar in the variable X.
There are sometimes weird formulations in this document, perhaps because it was written by Japanese people?
I was intrigued by the "reversion of symbols" function. In fact, it’s the +/- operation in matrix mode.

I have not tested all the matrix functions, but they should work.

I've tested determinant, inverse and simultaneous equations (which is really just an inversion and multiplication.) They work very fast and return the correct answers. I'm a happy camper.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)