Skip to content
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: FDISK not working on korean MSX computers #106

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

Konamiman
Copy link
Owner

The problem (visible at least in the Daewoo CPC-400) is that the CHPUT routine is supposed to not modify the IX and IY registers, but in this computer it does since it does an inter-slot call to an internal slot (presumably to handle korean characters); this causes the PRINTF routine used by FDISK to crash.

Additionally, a small hack is added to print one less "-" character in the upper and lower rulers when that inter-slot call is performed, otherwise the FDISK screen isn't printed properly (it introduces an additional line break for some reason).

Closes #100

@Konamiman Konamiman self-assigned this Jul 13, 2022
@Konamiman Konamiman added this to the v2.1.1 final milestone Jul 13, 2022
@Konamiman Konamiman changed the base branch from v2.1 to v2.1.1 July 13, 2022 16:31
@Konamiman Konamiman force-pushed the fix/fdisk-on-korean-machines branch 6 times, most recently from de97f5d to 261c1d3 Compare July 13, 2022 16:37
The problem (visible at least in the Daewoo CPC-400) is that
the CHPUT routine is supposed to not modify the IX and IY registers,
but in this computer it does since it does an inter-slot call to
an internal slot (presumably to handle korean characters); this causes
the PRINTF routine used by FDISK to crash.

Additionally, a small hack is added to print one less "-" character
in the upper and lower rulers when that inter-slot call is performed,
otherwise the FDISK screen isn't printed properly (it introduces an
additional line break for some reason).
@Konamiman Konamiman force-pushed the fix/fdisk-on-korean-machines branch from 261c1d3 to 0740e07 Compare July 13, 2022 16:37
@Konamiman Konamiman merged commit 83e98eb into v2.1.1 Aug 31, 2022
@Konamiman Konamiman deleted the fix/fdisk-on-korean-machines branch August 31, 2022 11:11
@Konamiman Konamiman mentioned this pull request Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FDISK will not load on Korean MSX
1 participant