VOOZH about

URL: https://qiita.com/Stosstruppe/items/f3d72b86c39adbeea861

⇱ PC-88 z80asm #Z80 - Qiita


👁 Image
2

Go to list of users who liked

0

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@Stosstruppe

PC-88 z80asm

2
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

Go to list of users who liked

0
0

Go to list of comments

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

Go to list of users who liked

0