-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix DOS1 mode, page 1 DEV_RW error checking #111
Conversation
Hi @S0urceror, thanks for your contribution. May I ask for a few changes:
|
source/kernel/drv.mac
Outdated
jr nc,DIO_WR_OK | ||
; fix by S0urceror | ||
and a | ||
jr z,DIO_RD_OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this jump to DIO_WR_OK
instead?
I guess you’re right. This is a WR function so the JR should go to WR_OK. The change is checking for Z not C flag.
Sent by phone
________________________________
From: Néstor Soriano ***@***.***>
Sent: Sunday, April 16, 2023 10:03 PM
To: Konamiman/Nextor ***@***.***>
Cc: S0urceror ***@***.***>; Mention ***@***.***>
Subject: Re: [Konamiman/Nextor] fix DOS1 mode, page 1 DEV_RW error checking (PR #111)
@Konamiman commented on this pull request.
________________________________
In source/kernel/drv.mac<#111 (comment)>:
@@ -539,7 +542,10 @@ DIO_WR_LOOP:
ex af,af'
ld a,DV_BANK##
call CALBNK##
- jr nc,DIO_WR_OK
+ ; fix by S0urceror
+ and a
+ jr z,DIO_RD_OK
Shouldn't this jump to DIO_WR_OK instead?
—
Reply to this email directly, view it on GitHub<#111 (review)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABGC6KGHD56SYMP5JA3RADDXBRF7TANCNFSM6AAAAAAQJ6KHC4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi @S0urceror, I'm preparing the release of Nextor 2.1.2. Would you be able to handle the changes I requested in #111 (comment) and #111 (comment) please? Also there are now conflicts in |
By the way @S0urceror I've set you as "assignee" for the pull request because it makes it easier for me to see who's the author in the list of open pull requests. Not that I'm your boss giving you work to do or anything like that. 😄 |
Hi @Konamiman, no problem to perform the things you asked. I thought I already did that way back in April and resubmitted. Sorry for the delay. Thanks for chasing this. Will try to do this later this week. |
Hi @Konamiman, made the requested changes. But somehow I can't figure out .gitignore. I copy & pasted your version of this file into my project and resubmitted and somehow Github says it's still not correct. Since I'm now using your .gitignore all DS_Store are appearing again in my GitHub which is a pain that Mac users have to endure I'm afraid. |
Description Problem Solution To test on old version of Nextor |
Hi @S0urceror. I have fixed the If you want these .DS_Store files to be ignored by your local git environment without having to add them to Now, could you please add an additional commit that:
I tried to do these changes myself by cloning your branch locally, but I don't have the permissions to push any changes to your repository. |
Hey @S0urceror, on a second thought, this thing is actually somewhat more complex, since there's a difference in how errors are reported by device-based drivers vs drive-based drivers:
So upon return of either DEV_RW or DSKIO, the Nextor code should check the carry flag or not, depending on the type of driver (while the relevant code is running, the I can implement the required change myself if you want. For that we have two options: either you give me write permissions on your branch, or I close your pull request and then create a new one from scratch. Which one do you prefer? |
Hi @Konamiman, sounds indeed this is a bit more convoluted. I think it is best you make the change. Please close my original pull request. I think this is the cleanest way to do this. I did however come up with the following code that might do what we want. But I leave it to you to come up with a better solution.
|
Hi, I propose this PR to fix the DOS1 mode, page 1, DEV_RW return value error checking. See DRV.MAC.
I made a build of Nextor on my Mac and had to make a couple of changes to make it build. Please ignore these if they are not relevant.
PS. great Makefile does a lot of magic!
Closes #110