
#include "stack_calc_manual_insn_basic.hsp"
#include "stack_calc_manual_insn_logic.hsp"
#include "stack_calc_manual_insn_compare.hsp"
#include "stack_calc_manual_insn_shift.hsp"
#include "stack_calc_manual_command_stack_1st.hsp"
#include "stack_calc_manual_command_stack_2nd.hsp"
#include "stack_calc_manual_command_heap.hsp"
#include "stack_calc_manual_command_easy_string.hsp"
#include "stack_calc_manual_command_random.hsp"
#include "stack_calc_manual_command_system.hsp"
#include "stack_calc_sample_insn.hsp"
#include "stack_calc_sample_command_1st.hsp"
#include "stack_calc_sample_command_2nd.hsp"

screen 0,800,600
*manual_begin
cls 0
objsize 300,28
pos 10, 10
font "ＭＳ ゴシック",20,0
objmode 2
mes "stack式CUI計算機 芳ステム２０２１ (YOSHISUTEMU_2021）マニュアル\n"
button "はじめに（README）", *readme
mes ""
button "基本の説明", *manual_basic
mes ""
button "演算命令", *begin_insn
mes ""
button "COMMAND", *begin_command
mes ""
button "SAMPLE＆TEST 演算命令", *begin_insn_sample_test
mes ""
button "SAMPLE＆TEST COMMAND",  *begin_command_sample_test
stop
*readme
cls 0
objsize 200,28
pos 10, 10
font "ＭＳ ゴシック",20,0

sdim README_text,5000
notesel README_text
noteload "README.txt"
mesbox README_text,760,500
mes ""
button "戻る",*manual_begin
stop
*manual_basic
cls 0
objsize 200,28
pos 10, 10
font "ＭＳ ゴシック",20,0

sdim basic_text,5000
notesel basic_text
noteload "マニュアルBASIC.txt"
mesbox basic_text,760,500
mes ""
button "戻る",*manual_begin
stop


*begin_insn
cls 0
objsize 300,28
pos 10, 10
font "ＭＳ ゴシック",20,0
mes "stack式CUI計算機 芳ステム２０２１ (YOSHISUTEMU_2021）マニュアル\n"
mes "演算命令\n"
button "演算命令", *manual_insns
mes ""
mes "!ADD !SUB !MULT !DIV !MOD !++ !--\n"
button "論理（ビット）演算命令", *manual_logic
mes ""
mes "!AND !OR !XOR !BOOL !ANDAND !OROR !XORXOR\n"
button "比較演算命令", *manual_compare
mes ""
mes "!< !<= !> !>= !EQUAL !NOT_EQUAL !NOT\n"
button "シフト演算命令", *manual_shift
mes ""
mes "!L_SHIFT(!BIG_SHIFT) !R_SHIFT(!SMALL_SHIFT)\n"
button "SAMPLE＆TEST", *begin_insn_sample_test
mes "\nSAMPLE＆TEST 演算命令\n"
button "戻る",*manual_begin
stop

*begin_command
cls 0
objsize 300,28
pos 10, 10
font "ＭＳ ゴシック",20,0
mes "stack式CUI計算機 芳ステム２０２１ (YOSHISUTEMU_2021）マニュアル"
mes "COMMAND\n"
button "stack命令。その１", *manual_stack_1st
mes "!STACK_DISCARD !POP_MEMORY !STACK_DUMP\n"
button "stack命令。その２", *manual_stack_2nd
mes "!STACK_DUP !STACK_SWAP !STACK_COPY !STACK_SLIDE\n"
button "heap命令", *manual_heap
mes "!HEAP_SET !HEAP_GET !HEAP_DUMP\n"
button "easy string命令", *manual_easy_string
mes "!CLEAR_STRING !STRING_ADD_CHAR !STRING_ADD_W_CHAR !STRING_ADD_INT !PRINT\n"
button "random命令", *manual_random
mes "!SYSTEM_RANDOMIZE_NON !SYSTEM_RANDOMIZE !SYSTEM_RND\n"
button "system命令", *manual_system
mes "!SYSTEM_AWAIT !SYSTEM_WAIT !SYSTEM_BYE !SYSTEM_VSAVE !SYSTEM_VLOAD\n"
button "SAMPLE＆TEST COMMAND", *begin_command_sample_test
mes ""
button "戻る",*manual_begin
stop
*tmp
	stop
*begin_command_sample_test
cls 0
objsize 300,28
pos 10, 10
font "ＭＳ ゴシック",20,0
mes "stack式CUI計算機 芳ステム２０２１ (YOSHISUTEMU_2021）マニュアル\n"
mes "SAMPLE＆TEST COMMAND\n"
button "COMMAND。その１",*begin_command_sample_test_1st
mes "\nSTACK命令。HEAP命令\n"
mes "!STACK_DISCARD !POP_MEMORY !STACK_DUMP"
mes "!STACK_DUP !STACK_SWAP !STACK_COPY !STACK_SLIDE"
mes "!HEAP_SET !HEAP_GET !HEAP_DUMP\n"
mes ""
button "COMMAND。その２",*begin_command_sample_test_2nd
mes "\nEASY STRING命令。RND命令。SYSTEM命令\n"
mes "!CLEAR_STRING !STRING_ADD_CHAR !STRING_ADD_W_CHAR !STRING_ADD_INT !PRINT"
mes "!SYSTEM_RANDOMIZE_NON !SYSTEM_RANDOMIZE !SYSTEM_RND"
mes "!SYSTEM_AWAIT !SYSTEM_WAIT !SYSTEM_BYE !SYSTEM_VSAVE !SYSTEM_VLOAD\n"
mes ""
button "マニュアル。COMMAND",*begin_command
mes ""
button "戻る",*manual_begin
stop