       Binary & Hobeta files ==> .SNA
	 By Aprisobal (c) 2004-2006
              aprisobal@tut.by
- - - - - - - - - - - - - - - - - - - - - - - -

Usage:
  bin2sna.exe <file-descriptor>

The program support generation of snapshot of Spectrum 128 machine.
File-Descriptor describes structure of need snapshot. You can use next directives:

FNAME "<filename>" - destination snapshot file
PAGE <byte> - set current page of RAM (0x7FFD)
ADDR <word> - set current address in RAM(note: you must use 0xC000, if you want to include files in high memory)
INCBIN "<filename>" - include binary file from current address, i.e. use ADDR to set current address.
HOBETA "<filename>" - as INCBIN, but for HOBETA files
7FFD <byte> - set value of port 0x7FFD
FE <byte> - set value of port 0xFE
REGISTER(or REG) r <byte> or <word> - set value of register r
	Registers:
	r: PC(address of program start),SP,BC,DE,HL,AF,BC`,DE`,HL`,AF`,IX,IY,R,I

IM <byte> - set IM mode(0-2)		

Format of numbers:
   HEX: $0000,#0000,0x0000,0000h
   BIN: %00000000
    and in DEC  

Warning!  
 These software are provided "as-is". 
 No warranty of any kind is expressed or implied. 
 The author will not be liable for data loss, damages, loss of profits or any other kind of loss while using or misusing this software.

Example:
 1. Create file "snap.txt":
FNAME "game.sna"
ADDR $8000
INCBIN "maincode.bin"
PAGE 7
ADDR $C000
INCBIN "page7.bin"
REG PC $6000 ;program start
REG SP $C000 ;stack pointer
 2. Use bin2sna snap.txt
 3. That's all! 

Good Luck!