Skip to content

Commit

Permalink
fix (cpmv): Clock updates cause incorrect behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
kg68k committed Aug 14, 2024
1 parent a1169a4 commit d8ef5ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 4.2.3 (2024-08-15)

* ファイルのコピー・移動中に時計表示が更新されると異常動作する不具合を修正。


# 4.2.2 (2024-06-19)

* `&title-load`でヘッダが32バイト未満のMAGファイルを表示できない不具合を修正。
Expand Down
2 changes: 1 addition & 1 deletion src/include/version.mac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

* mint version number ------------------------- *

mint_version: .reg '4.2.2'
mint_version: .reg '4.2.3'
minthis_ver: .reg '3.10'


Expand Down
8 changes: 3 additions & 5 deletions src/mint.s
Original file line number Diff line number Diff line change
Expand Up @@ -3323,17 +3323,15 @@ sizeof_CLOCK_VALUE:
.text

update_periodic_display::
PUSH d0-d2/a0
PUSH d0-d7/a0-a6
move (disable_write_and_clock_flag,opc),d0
bne 9f
lea (clock_value),a0
move.l ($6502-clock_value,a0),d0 ;move.w + swap
move ($cals-clock_value,a0),d0
cmp.l (CLOCK_6502_CALS,a0),d0
beq @f
PUSH d3-d7/a1-a6
bsr print_titlebar ;レイアウトが変わる場合はタイトル行全体を再描画
POP d3-d7/a1-a6
bra 9f
@@:
bsr get_datetime
Expand All @@ -3349,15 +3347,15 @@ update_periodic_display::
bsr cals1_blink
bra 9f
5:
;前回表示から1秒経過した(ただし初回は1秒未満の場合もある)
;前回表示から1秒以上経過した(ただし初回は1秒未満の場合もある)
bsr update_clock

not.b (CLOCK_IS_ODD,a0) ;毎秒更新だと頻繁すぎるように感じたので2分周して2秒ごと
bne @f
bsr update_phantomx_soctmp
@@:
9:
POP d0-d2/a0
POP d0-d7/a0-a6
rts


Expand Down

0 comments on commit d8ef5ab

Please sign in to comment.