More than 5 years have passed since last update.
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
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
