Skip to content

Commit

Permalink
refactor: Preparing to remove obsolete features completely.
Browse files Browse the repository at this point in the history
  • Loading branch information
kg68k committed Oct 5, 2024
1 parent 38a7045 commit b6cf347
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# 変更履歴

## 4.0.0 (2024-10-06)

* dosdef.mac, filesys.mac: 削除予定の機能はシンボル`__RUKA_ENABLE_OBSOLETE_MACRO__`
定義したときのみ有効となるようにした。
* fdef.mac: 新規作成。X-BASIC外部関数の定義。
* macro.mac: `STRLEN`マクロに第三引数`offset`(長さの補正、-7~+9)を追加。


## 3.3.0 (2024-07-31)

* devdrv.mac: `REQHEAD_ReadData``DPBv1_*``CURDIR_*``MEDIABYTE_*``DIRENT_*`を追加。
Expand Down
14 changes: 7 additions & 7 deletions src/dosdef.mac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.nlist

;dosdef.mac - RUKA assembler macro for X680x0/Human68k(v3) by TcbnErik
;Last-modified: 2024-07-31
;Last-modified: 2024-10-06
;
;Copying and distribution of this file, with or without modification,
;are permitted in any medium without royalty provided the copyright
Expand Down Expand Up @@ -115,7 +115,7 @@ STDAUX: .equ 3
STDPRN: .equ 4
.endif

.ifndef __RUKA_DISABLE_OBSOLETE_MACRO__
.ifdef __RUKA_ENABLE_OBSOLETE_MACRO__
ATR_EXEC: .equ 7
ATR_LINK: .equ 6
ATR_ARC: .equ 5
Expand All @@ -135,21 +135,21 @@ HIDDEN: .equ 1
READONLY: .equ 0
.endif

.ifndef __RUKA_DISABLE_OBSOLETE_MACRO__
.ifdef __RUKA_ENABLE_OBSOLETE_MACRO__
READRV: .equ $40
VIRDRV: .equ $50
VIRDIR: .equ $60
.endif

.ifndef __RUKA_DISABLE_OBSOLETE_MACRO__
.ifdef __RUKA_ENABLE_OBSOLETE_MACRO__
ROPEN: .equ 0
WOPEN: .equ 1
RWOPEN: .equ 2
*COPEN: .equ 3
*DOPEN: .equ 4
.endif

.ifndef __RUKA_DISABLE_OBSOLETE_MACRO__
.ifdef __RUKA_ENABLE_OBSOLETE_MACRO__
SEEK_SET: .equ 0
SEEK_CUR: .equ 1
SEEK_END: .equ 2
Expand All @@ -169,7 +169,7 @@ EXECMODE_LOADONLY: .equ 3
EXECMODE_EXECONLY: .equ 4
EXECMODE_BINDNO: .equ 5

.ifndef __RUKA_DISABLE_OBSOLETE_MACRO__
.ifdef __RUKA_ENABLE_OBSOLETE_MACRO__
EXEC_LOADEXEC: .equ 0
EXEC_LOAD: .equ 1
EXEC_PATHCHK: .equ 2
Expand All @@ -190,7 +190,7 @@ ENV_MAX: .equ 256
DRIVE_MAX: .equ 26
.endif

.ifndef __RUKA_DISABLE_OBSOLETE_MACRO__
.ifdef __RUKA_ENABLE_OBSOLETE_MACRO__
MB_2DD10: .equ $e0
MB_1D9: .equ $e5
MB_2D9: .equ $e6
Expand Down
4 changes: 2 additions & 2 deletions src/filesys.mac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.nlist

;filesys.mac - RUKA assembler macro for X680x0/Human68k(v3) by TcbnErik
;Last-modified: 2024-07-31
;Last-modified: 2024-10-06
;
;Copying and distribution of this file, with or without modification,
;are permitted in any medium without royalty provided the copyright
Expand Down Expand Up @@ -118,7 +118,7 @@ FILES_FileSize: .ds.l 1
FILES_FileName: .ds.b 23
sizeof_FILES:
.fail $.ne.53
.ifndef __RUKA_DISABLE_OBSOLETE_MACRO__
.ifdef __RUKA_ENABLE_OBSOLETE_MACRO__
FILES_Path:
.endif
FILES_EX_Drive: .ds.b 2
Expand Down

0 comments on commit b6cf347

Please # to comment.