0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

z88dk MSX .asmファイルから.romファイルをビルドする方法

Last updated at Posted at 2025-12-21
main.asm
    ; z88dkのリンカに _main を公開する
    ; 接頭にアンダースコア(_)を付ける
    PUBLIC _main

    ; MSX BIOSのアドレス定義
    defc CHPUT = $00A2

_main:
    ; ここがプログラムの開始地点です
    ld a, 'H'
    call CHPUT
    ld a, 'e'
    call CHPUT
    ld a, 'l'
    call CHPUT
    ld a, 'l'
    call CHPUT
    ld a, 'o'
    call CHPUT

    ; 無限ループで停止
loop:
    jr loop
.ビルドコマンド
zcc +msx -subtype=rom -create-app main.asm -o main.rom
.※参考
z80asm コマンドを使用すると.binファイルが生成される
z80asm -b main.asm
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?