2
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?

More than 5 years have passed since last update.

PC-88 z80asm

Last updated at Posted at 2018-07-25
hello.asm
; z88dk
; z80asm -b -l hello.asm
        org     $b000
start:
        in      a, ($71)        ; メインROMをセレクトする
        push    af
        ld      a, $ff
        out     ($71), a

        ld      hl, msg
        call    $5550

        pop     af              ; ROMの状態を元へ戻す
        out     ($71), a
        ret

msg:    defm    "hello, world", 0

z80asm -b -l hello.asm
z80asmでアセンブルし、作られたhello.binファイルをt88ファイルに変換する。(hello.t88)
バイナリ→T88ファイル作成

M88の場合
メニューから[Tools]->[Tape...]を選択し、hello.t88を開く。
hello_t88.png

機械語モニタから実行

hello2.asm
; z88dk / PC-8801 mon
; z80asm -b -l hello2.asm

        org     $b000
start:
        ld      hl, msg
        call    $5550
        rst     $38

msg:    defm    $d, $a, "hello, world", 0

hello_mon.png

2
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
2
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?