Willie1914 Posted February 7, 2021 Share Posted February 7, 2021 Hi everyone, I'm using the Warren/Miller General Purpose DSRLNK, and am trying to find out where the following values may be found after a successful call (for example, opening a file for read access from DSK2., etc., )? 1. Card CRU address 2. DSR address I know where these values are stored when using the Ti-DSRLNK (both for MiniMem and E/A), but I'm having trouble deciphering the GPL code. Thanks in advance, Willie Quote Link to comment Share on other sites More sharing options...
+Lee Stewart Posted February 8, 2021 Share Posted February 8, 2021 6 hours ago, Willie1914 said: 1. Card CRU address 2. DSR address If I understand your question, they are the same as the E/A DSRLNK: Card CRU address: >83D0 DSR address: >83D2 (as with the E/A DSRLNK, this contains the address 2 bytes before the last subroutine actually called) The code that actually finds/saves the above 2 addresses and executes the appropriate DSR subroutine is in the console ROM, which was called by the GPL DSRLNK routine in console GROM 0, which was called by the Warren/Miller DSRLNK. ...lee Quote Link to comment Share on other sites More sharing options...
Willie1914 Posted February 8, 2021 Author Share Posted February 8, 2021 Thanks, Lee. Those two addresses (>83D0 and >83D2) are exactly what I was looking for... I had assumed that they that they were the same, but wanted to be certain. Willie Quote Link to comment Share on other sites More sharing options...
apersson850 Posted February 8, 2021 Share Posted February 8, 2021 Just be careful so that you don't assume characteristics in the caller, which will spoil your driver if it's called in a different way. There are examples of when such assumptions failed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.