VOOZH about

URL: https://qiita.com/Stosstruppe/items/7ddf040ddac32290bb57

⇱ MSX z80asm #Z80 - Qiita


👁 Image
3

Go to list of users who liked

1

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@Stosstruppe

MSX z80asm

3
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

Go to list of users who liked

1
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
3

Go to list of users who liked

1