#####################################################################
#								    #
#            Welcome to the MasterSeka V1.80 Documentation          #
#                 Made by CORSAIR of SKIDROW in 1991                #
#								    #
#####################################################################

This file contains a quick reference table of (hopefully) all MasterSeka
functions.


CLI and/or 'MasterSeka.startup' file options
--------------------------------------------
	Syntax (with '-')		Explanation
	---------------------------------------------------------------
	-a AbsoluteAdr		: Workspace at Adr
	-b Scrollbarflag	: flag: 0=none, 1=right, 2= left border
	-c			: Workspace in Chipmemory
	-e Editorsize		: size: number of editor lines
	-h Historysize		: size: history size (default: 127)
	-l flag			: flag: 0=linenumbers off 1=on
	-r FileRequesterType	: 0=none, 1=ARP, 2=req.library
	-s Screendepth		: depth: 0=window, 1=1 plane, 2=2 planes
	-w X Y Width Heigth	: Size of window (set either parameter to
				  0 to use its default, use PAL/NTSC size
	-w+ X Y Width Heigth	: Dito, but use workbench screen size
	-X			: Close workbench (only when start from WB)


MasterSeka commands (optional parameters in '[' and ']')
--------------------------------------------------------
	=			: WorkInfo
	>[<SPACE>Filename]	: Copy output to file (close file with '>'!)
	?			: evaluate expression
	@[Command]		: execute CLI command
	a[Address]		: assemble (for options: see below)
	b			: bottom
	bAddress		: calculate bootblock checksum for Address
	c			: compare memory ranges
	cl			: kill source
	cls			: clear screen
	cs			: create sinus! (needs mathtrans.library)
	d[Address]		: dissassemble
	e[Line number]		: edit line
	f			: find in memory
	fi			: fill memory
	g[Address]		: jump to address
	h			: WorkInfo
	i[Line number]		: insert line
	j[Address]		: JSR to address
	ka			: free absolute memorylist (see 'INCBIN')
	kf[<SPACE>Filename]	: delete file
	kl			: kill linkfile in memory
	kp			: kill paste buffer
	ks			: kill source
	l[Searchstring]		: search source for searchstring
	m[Address]		: modify memory
	n[Address]		: show ASCII dump
	o			: old (get source back after 'ks')
	p[Amount]		: display 'Amount' sourcelines from current
	q[Address]		: hexdump memory
	r[<SPACE>Filename]	: read source
	rgb			: change palette
	ri[<SPACE>Filename]	: read binary file
	rl[<SPACE>Filename]	: read link file
	ro[<SPACE>Filename]	: read executable (LoadSeg)
	rs[Drivenumber]		: read sectors
	rt[Drivenumber]		: read cylinders
	s[Address]		: single step code
	t[Linenumber]		: jump to top of source or specified line
	u[Address]		: UnloadSeg executable
	v[Pathname]		: show directory
	v<SPACE>Pathname	: change directory
	w[<SPACE>Filename]	: write source
	wbFlag			: Flag: 0=Close WB, 1=Open WB
	wi[<SPACE>Filename]	: write binary file
	wl[<SPACE>Filename]	: write link file
	wo[<SPACE>Filename]	: write executable
	ws[Drivenumber]		: write sectors
	wt[Drivenumber]		: write cylinders
	y			: load EXTERNS
	zAmount			: zap 'Amount' lines


Assemble options
----------------
	A	:	Error on absolute memory adr mode (for debugging)
	E	:	Listing on printer
	H	:	Stop after each page of the listing
	L	:	Produce linkable code
	O	:	Optimize
	P	:	Listing on printer (same as E)
	R	:	Error on reloc entry (non pc-relative code)
	V	:	Listing on screen


Shortcuts with Amiga-key (try right mouse button)
-------------------------------------------------
editor
	A	:	Assemble
	a	:	Search backwards
	b	:	Mark block
	c	:	Copy block
	e	:	Exchange search & replace buffers
	G	:	Global replace
	g	:	Goto line
	i	:	Insert block
	k	:	Cut line
	L	:	Toggle line numbers on/off
	l	:	Insert line
	o	:	Rotate block
	Q	:	Quick start
	q	:	Quit editor
	P	:	Block to replace buffer
	p	:	Block to search buffer
	R	:	Enter search/replace strings
	r	:	Replace
	S	:	Enter search string
	s	:	Search forwards
	T	:	Bottom of source
	t	:	Top of source
	U	:	Block to uppercase
	u	:	Block to lowercase
	v	:	Vertical insert
	w	:	Save block
	x	:	Cut block
	y	:	Cut to EOL
	,	:	Insert comment to block
	.	:	Remove comment to block

direct mode
	A	:	Assemble
	Q	:	Quit start
	q	:	Quit masterseka
	o	:	Kill  actual source & read a new one.

Shortcuts with CTRL-key
-----------------------
	A	:	One screen up
	B	:	Mark block
	C	:	Cut block
	D	:	Delete to end of lines
	E	:	Cursor to End of Line
	F	:	Paste block (fill)
	J	:	Search for text (jump)
	K	:	Kill line
	L	:	Lower case
	O	:	Insert line
	P	:	Paste
	Q	:	Cursor to Start of Line
	R	:	Rotate block
	S	:	100 lines up
	T	:	Top of File
	U	:	Upper case
	W	:	Write block to disk
	X	:	100 lines down
	Y	:	One screen down
	Z	:		"
	[	:	ESC

Shortcuts with ALT-key
----------------------
	up	:	100 lines up
	down	:	100 lines down
	right	:	Jump to matching label
	left	:	Jump back to label call

Pseudo opcodes (directives)
---------------------------
	Syntax			: Explanation		: Example
--------------------------------------------------------------------------
	align Size[,Offset]	: align PC		: align 32
	blk.B/W/L Size[,Code]	: fill block		: blk.b 100,'B'
	code			: code section		:
	cnop Size[,Offset]	: see 'align'		:
	dc.B/W/L Value[s]	: insert constants	: dc.b "BUDDHA"
	ds.B/W/L Size[,Code]	: see 'blk'		:
	endif			: terminate conditional	:
	endm			: terminate macro def.	:
symbol:	equ			: define symbol		: sysbase equ 4
	else			: conditional assembly	:
	even			: align PC to even	:
	end			: end of source		:
	globl			: global symbol (link)	:
	if Expression		: conditional assembly	:
	illegal			: breakpoint $4AFC	:
	incbin "Filename"	: include file in object: incbin "Data"
	incbin "Filename",Adr	: load file to Adr	: incbin "A",$50000
	list			: assembly listing on	:
	load Address		: assemble to 'Address'	: load $50000
symbol:	macro			: start macro definition: plop: macro
	nlist			: assembly listing off	:
	nolist			: 	"		:
	odd			: align PC to odd	:
	org Address		: generate absolute code:
	page			: listing -> new page	:
	plen pagelen		: set page length	: page 66
	pwid pagewid		: set page width	: pwid 70
	pinit expression	: init page settins	:
	section name,type	: code,code_c,bss,bss_c	: section aa,BSS_C

68020 instructions supported
----------------------------
	index scale:	eg. move.w (a0,d0.w*4),d0
   	DIVs.L
	DIVsL.L
	EXTB.L
	MOVEC			Rc: SFC,DFC,CACR,USP,VBR,CAAR,MSP,ISP
	MOVES
	MULs.L
	MULs.L
	RTD
	TST	An/D16(PC)/D8(PC,Rn)

Have fun & I wish you a happy new year.... -*- CORSAIR/SKIDROW -*-
