From 73c11d3e82b0a2270d53820e7a0a3c28e88a9214 Mon Sep 17 00:00:00 2001 From: kg68k <78926718+kg68k@users.noreply.github.com> Date: Sun, 5 Feb 2023 02:53:16 +0900 Subject: [PATCH] feature: expand the embedded model name to 26 bytes --- src/si.s | 10 ++++++++-- src/si_ver.mac | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/si.s b/src/si.s index 18fa543..e9031df 100644 --- a/src/si.s +++ b/src/si.s @@ -830,11 +830,17 @@ get_hostname_noenv: rts -ROM_EMBED_NAME_MAX: .equ 32-4-4 ;ヘッダ'NAME'と予約4バイトを除く +ROM_EMBED_ID: .equ $00ffffe0 +ROM_EMBED_NAME: .equ $00ffffe4 +ROM_EMBED_EMU: .equ $00fffffe +ROM_EMBED_MODEL:.equ $00ffffff + +ROM_EMBED_ID_STR: .equ 'NAME' +ROM_EMBED_NAME_MAX: .equ ROM_EMBED_EMU-ROM_EMBED_NAME * ROM埋め込み機種名を取得する get_rom_embedded_model_name: - lea ($ffffe0),a1 + lea (ROM_EMBED_ID),a1 cmpi.l #'NAME',(a1)+ bne 8f diff --git a/src/si_ver.mac b/src/si_ver.mac index b76370c..ab0ed1a 100644 --- a/src/si_ver.mac +++ b/src/si_ver.mac @@ -1,2 +1,2 @@ -SIEE_VERSION: .reg '4.06' -SIEE_DATE: .reg '2022-10-15' +SIEE_VERSION: .reg '4.07' +SIEE_DATE: .reg '2023-02-05'