Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DD(Define Data)という制御命令があると嬉しい #213

Open
AILight opened this issue Aug 12, 2023 · 0 comments
Open

DD(Define Data)という制御命令があると嬉しい #213

AILight opened this issue Aug 12, 2023 · 0 comments

Comments

@AILight
Copy link
Owner

AILight commented Aug 12, 2023

内藤さんよりご依頼。
https://twitter.com/NAITOTokihiro/status/1690150741116342272?s=20

従来のデータを配置する DB や DW に加えてどちらも配置できる DD(Define Data)という制御命令があると嬉しいです。

    DW LABEL1
    DB $01
    DW LABEL2
    DB $02
    DW LABEL3
    DB $03

従来だとこのように書かざるを得ない部分を

DD LABEL1, $01, LABEL2, $02, LABEL3, $03

このように書きたいです。アドレスや指定された値が 16bit なら DW、8bit なら DB 相当に自動で割り当てて欲しいです。また、数値を強制的に DW 相当にする .
@W
 もあると最高に嬉しいです。

    DD $68.
@W


ご検討よろしくお願いいたします。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant