

#clear
;
;初期化スクリプト
;ターゲットメモリの定義
#echo $_FILE
;
;          data   io   endian addressing
define_mem 10000 10000 BE     BA

add_mem_area	reg		0000 0100 1 RW
add_mem_area	com&io	8000 2000 2 RW
add_mem_area	com_io	8000 2000 2 RW
add_mem_area	exram	c000 1000 8 RW
add_permanent_area font a000 1000 1  R font_han2.bin

add_io_area		switch	0000 0010

#nolist

;include "cminitBB.txt"	;NG
include "set-get.txt"		;OK
;include set-get.txt		;OK
;include set-get.tx		;NG

;set_script_mode S

wait -s -b 11

get -s -b4

#list -d
;コメント行
set -s8000 '0123456789ABCDEF'		;書き込み
get -s8000 -b10				;読み出し
#exit


messagebox "アンパック形式"

set -s8000 '0123456789ABCDEF'		;書き込み
get -s8000 -b10				;読み出し
get -s8000 -cu8
get -s8000 -c8
get -s8000 -b8
get

messagebox "パック形式"

set -s8000 "0123456789ABCDEF"
get -s8000 -b10
get -s8000 -cu8
get -s8000 -c8
get -s8000 -b8
get

get -s8000 -b4
get -w2
get -l1
get
