1
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-6001] ポート$B0

Last updated at Posted at 2013-04-25
bit 内容
7-4 reserved -
3 CMTのリレー 0:OFF, 1:ON
2-1 VRAMアドレス 00:$C000, 01:$E000, 10:$8000, 11:$A000
0 2msタイマー割り込み 0:Enable, 1:Disable

#BIOSを利用した変更方法
##仕様

ld      b,mask          ;マスク(変更したいbitを1にする)
ld      a,data          ;変更値(マスクが0のbitは影響を受けない)
call    $1B54

##変更例
###VRAMアドレスを$8000にする

ld      b,%00000110     ;bit2-1
ld      a,%00000100     ;10:$8000
call    $1B54

###2msタイマーを止める

ld      b,%00000001     ;bit0
ld      a,%00000001     ;1:Disable
call    $1B54
1
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
1
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?