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

z88dk MSX メモリ領域確保 ds.b ds.w DEFVARS

Posted at

ds.bの定義は、
DEFVARS $C000
{
}
の中に定義する
アドレスは、任意のアドレスを指定する

main.c
int main(){
#asm
; BIOS
CHPUT equ 0x00A2

ld hl, WK
ld (hl), 3
ld a, 0x30
add a, (hl)
call CHPUT


DEFVARS $C000
{
WK ds.b 1
}
#endasm
}
0
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
0
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?