Skip to content

Commit

Permalink
feat (filesys.mac): add sizeof_NAMESTS_* and sizeof_NAMECK_*
Browse files Browse the repository at this point in the history
  • Loading branch information
kg68k committed Nov 25, 2023
1 parent 5b748a3 commit 641044d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
17 changes: 11 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# 変更履歴

## 3.0.0 - 2023-09-20
## 3.1.0 (2023-11-26)

* `#`コメントを`;`に変更。
* filesys.mac: `sizeof_NAMESTS_*``sizeof_NAMECK_*`を追加。

## 3.0.0 (2023-09-20)

新機能
* filesys.mac: 新規作成。ドライブ、ファイル関係の定義。
* process.mac: 新規作成。メモリブロック、プロセス関係の定義。
* macro.mac: `STREND`マクロに第二引数`offset`(NUL文字からの相対位置=-7~+9)を追加。
```
STREND a0,-1 ;NULの前のアドレスを指す。
STREND a0,0 ;NULを指す。offset省略時と同じ。
STREND a0,+1 ;NULの次のアドレスを指す。offsetを指定する場合の主な用途。
```
```
STREND a0,-1 ;NULの前のアドレスを指す。
STREND a0,0 ;NULを指す。offset省略時と同じ。
STREND a0,+1 ;NULの次のアドレスを指す。offsetを指定する場合の主な用途。
```
* sram.mac: `SRAM_16KB_END``SRAM_32KB_END``SRAM_64KB_END`を追加。

不具合の修正
Expand Down
26 changes: 18 additions & 8 deletions src/filesys.mac
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,33 @@ sizeof_FILES_EX:

* NAMESTS buffer ------------------------------ *

sizeof_NAMESTS_Path: .equ 65
sizeof_NAMESTS_Name1: .equ 8
sizeof_NAMESTS_Ext: .equ 3
sizeof_NAMESTS_Name2: .equ 10

.offset 0
NAMESTS_Wild: .ds.b 1
NAMESTS_Drive: .ds.b 1
NAMESTS_Path: .ds.b 65
NAMESTS_Name1: .ds.b 8
NAMESTS_Ext: .ds.b 3
NAMESTS_Name2: .ds.b 10
NAMESTS_Path: .ds.b sizeof_NAMESTS_Path
NAMESTS_Name1: .ds.b sizeof_NAMESTS_Name1
NAMESTS_Ext: .ds.b sizeof_NAMESTS_Ext
NAMESTS_Name2: .ds.b sizeof_NAMESTS_Name2
sizeof_NAMESTS:
.fail $.ne.88

* NAMECK buffer ------------------------------- *

sizeof_NAMECK_Drive: .equ 2
sizeof_NAMECK_Path: .equ 65
sizeof_NAMECK_Name: .equ 19
sizeof_NAMECK_Ext: .equ 5

.offset 0
NAMECK_Drive: .ds.b 2
NAMECK_Path: .ds.b 65
NAMECK_Name: .ds.b 19
NAMECK_Ext: .ds.b 5
NAMECK_Drive: .ds.b sizeof_NAMECK_Drive
NAMECK_Path: .ds.b sizeof_NAMECK_Path
NAMECK_Name: .ds.b sizeof_NAMECK_Name
NAMECK_Ext: .ds.b sizeof_NAMECK_Ext
sizeof_NAMECK:
.fail $.ne.91

Expand Down

0 comments on commit 641044d

Please sign in to comment.