Conversation
This is a port of PR #147
📝 WalkthroughWalkthroughA conditional guard was added to the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@source/kernel/bank2/val.mac`:
- Around line 2767-2773: The code incorrectly loads UD_DFLAGS into DE
(clobbering the unit descriptor) and then adds it to HL (which points into
UNIT_TAB); instead load the UD_DFLAGS offset into HL (not DE) and then add HL,DE
so DE still contains the unit descriptor address before testing the UF_DBD bit;
i.e. replace the instruction "ld de,UD_DFLAGS" with "ld hl,UD_DFLAGS" so the
subsequent "add hl,de" and "bit UF_DBD,(hl)" operate on the correct address and
DE is preserved for later code (references: UD_DFLAGS, UF_DBD, no_zap_unit).
"Backport" of #147
UD_FLAGSwas being checked instead ofUD_DFLAGS, and DE was being used instead of HL.Part of #164