3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MSX z80asm

Last updated at Posted at 2018-07-10

z88dkのz80asmでMSX用のhello, worldを作る。

hello.asm
CHPUT   equ     $00a2

        org     $d000
start:
        ld      hl, text
.loop
        ld      a, (hl)
        or      a
        ret     z
        call    CHPUT
        inc     hl
        jr      loop

text:   defm    "hello, world", 0

アセンブル
z80asm -b hello
hello.binファイルが作られる。

appmake +msx -b hello.bin --org 0xd000
hello.msxファイルが作られる。

WebMSXを起動する。
hello.msxファイルをDrive Aの+ FILESにドロップする(Altキーを併用してもいい)
bload"hello.msx",r
と入力する。

WMSX Screen (4).png

  • 参考

MSX2 Technical Hand Book - BIOS一覧

別バージョン

hello2.asm
CHPUT   equ     $00a2

        org     $d000
start:
        ld      hl, text
        call    puts
        ret
puts:
.loop
        ld      a, (hl)
        or      a
        ret     z
        call    CHPUT
        inc     hl
        jr      loop

text:   defm    "hello, world", 0
3
1
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?