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? |
|||
08-04-2023, 02:41 AM
Post: #2
|
|||
|
|||
RE: Access Matrix Functions From Sharp BASIC?
All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
08-04-2023, 05:09 AM
Post: #3
|
|||
|
|||
RE: Access Matrix Functions From Sharp BASIC?
(08-04-2023 02:41 AM)Valentin Albillo Wrote: . Thanks! Now I just have to see if Hrast has created a table of entry points for the PC-E500S. Tom L Cui bono? |
|||
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/ |
|||
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 |
|||
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. Fantastic! Thanks so much. Tom L Cui bono? |
|||
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. Do you know what "scholar" means? is it like "scalar"? Tom L Cui bono? |
|||
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. 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 |
|||
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"? 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? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)