TARGET_NAME=<Propeller>

; FPU IDE Code generation description file for:
;	Parallax Propeller using FPU64_Driver and FPU64_OpCodes
;   
; 2014-02-26

TARGET_OPTIONS=<Propeller>

MAX_LENGTH=<80>
MAX_WRITE=<14>
TAB_SPACING=<4>
COMMENT_PREFIX=<'>
SOURCE_PREFIX=<{t}' >
HEX_FORMAT=<${byte}>
STRING_HEX_FORMAT=<,${byte}>
OPCODE_PREFIX=<F#_>
CONTINUATION=<, {
}{t}{t}>

WAIT=<{t}FPU.Wait>

WRITE_BYTE_FORMAT=<{byte}>
WRITE_WORD=<{t}FPU.WriteWord({word})>
WRITE_LONG=<{t}FPU.WriteLong({long})>
WRITE_FLOAT=<{t}FPU.WriteLong({float})>
WRITE_STRING=<{t}FPU.WriteStr(string("{string}"))>
WRITE_CMD=<{t}FPU.WriteCmd{n}({data})>
WRITE_DATA=<{t}FPU.WriteData{n}({data})>

READ_BYTE=<{t}{name} := FPU.Read>
READ_WORD=<{t}{name} := FPU.ReadWord>
READ_LONG=<{t}{name} := FPU.ReadLong>
READ_FLOAT=<{t}{name} := FPU.ReadLong>
READ_CMD=<{t}{name} := FPU.ReadCmd{n}({data})>

REGISTER_DEFINITION=<{t}{name}{t}={t}{register}{t}>
BYTE_DEFINITION=<byte{t}{name}{t}>
WORD_DEFINITION=<word{t}{name}{t}>
LONG_DEFINITION=<long{t}{name}{t}>
FLOAT_DEFINITION=<long{t}{name}{t}>

PRINT_FLOAT=<{t}FPU.WriteCmdByte(F#_FTOA, 0)
{t}FPU.ReadCmdStr(F#_READSTR, @sbuf)
{t}PST.str(@sbuf)
{t}PST.char(PST#NL)>

PRINT_LONG=<{t}FPU.WriteCmdByte(F#_LTOA, 0)
{t}FPU.ReadCmdStr(F#_READSTR, @sbuf)
{t}PST.str(@sbuf)
{t}PST.char(PST#NL)>

PRINT_FPUSTRING=<{t}FPU.ReadCmdStr(F#_READSTR, @sbuf)
{t}PST.str(@sbuf)
{t}PST.char(PST#NL)>

PRINT_NEWLINE=<{t}PST.char(PST#NL)>

PRINT_STRING=<{t}PST.str(string({string}))
{t}PST.char(PST#NL)>
