Repository navigation
Foundation の console で PCG mode 3 の全角文字を表示する - #153
Merged
Merged
Conversation
8×16表示で JIS X 0208 の文字と U+FFFD を UTF-16 の2セル文字として描画する。 全角フォントは最初の mode 3 切替時に VRAM 0x200000 へ配置し、折返し・BS・ 上書き/消去時の対の解消を扱う。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NgLFc3Zqfh41qc1tk5gozY
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NgLFc3Zqfh41qc1tk5gozY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by src3453 · project thread
Closes #150
概要
#148 で VDP に入った PCG mode 3 の 2 byte 文字(FG 属性 bit 7:6 = 01 MSB / 10 LSB、
WIDE_FONT_BASE)を、console サービスから使えるようにします。?1 セルです。0x200000 + u*32(Unifont ROM と同じ並び)へ書き、WIDE_FONT_BASEを設定します。データはfoundation/boot/wide_font.pyがビルド時にassets/unifont-bmp.chrから生成します(約 240 KiB)。console の MMIO grant に0x10200000–0x103FFFFFを追加し、1 byte 用フォント領域は引き続き触りません。doc/spec_Foundation_API.md§8.1/§8.1.2)、README、MEMORY.md を更新しました。テスト
python3 -m unittest discover -s foundation/tests/console(ホスト+testbench、全 9 件)合格。新規test_wide_characters_in_8x16は属性・WIDE_FONT_BASE・Unifont 由来の画素を確認します。FND_MM=slotでも同テスト合格。Generated by Claude Code