www.retrosoftware.co.uk
http://www.retrosoftware.co.uk/forum/

.syn file for TExtPad
http://www.retrosoftware.co.uk/forum/viewtopic.php?f=17&t=268
Page 1 of 1

Author:  RetroClinic [ Thu Mar 26, 2009 3:51 pm ]
Post subject:  .syn file for TExtPad

Hi.

Does anyone have the .syn file you're using for TextPad please on the BeebAsm Page? That looks so mighty fine! I've found one for an Atari 6502, but it doesn't seem to have all the setting right for the Beeb way of doing things.

Thanks, Mark.

Author:  RichTW [ Thu Mar 26, 2009 4:55 pm ]
Post subject:  Re: .syn file for TExtPad

Yep, right here!

6502.syn:
Code:
C=1

[Syntax]
Namespace1 = 6
IgnoreCase = Yes
InitKeyWordChars = A-Za-z.
KeyWordChars = A-Za-z1-9
BracketChars = ()[]
OperatorChars = -+*/<>!~%^&|=
PreprocStart = .
SyntaxStart =
SyntaxEnd =
CommentStart =
CommentEnd =
CommentStartAlt =
CommentEndAlt =
SingleComment = ;
SingleCommentCol =
SingleCommentAlt = \
SingleCommentColAlt =
SingleCommentEsc =
StringStart = "
StringEnd = "
StringAlt =
StringEsc = \
CharStart = '
CharEnd = '
CharEsc = \

[Preprocessor keywords]

[Keywords 1]
bcc
bcs
beq
bmi
bne
bpl
bvc
bvs
jmp
jsr
rti
rts

[Keywords 2]
adc
and
asl
bit
brk
clc
cld
cli
clv
cmp
cpx
cpy
dec
dex
dey
eor
inc
inx
iny
lda
ldx
ldy
lsr
nop
ora
pha
php
pla
plp
rol
ror
sbc
sec
sed
sei
sta
stx
sty
tax
tay
tsx
txa
txs
tya

[Keywords 3]
ORG
INCLUDE
PRINT
EQUB
EQUS
EQUW
SAVE
FOR
NEXT
IF
ELSE
ENDIF
ALIGN
SKIP
SKIPTO
GUARD
CLEAR
INCBIN
MAPCHAR

Looks like I based it off a C64 syn file on the Textpad website, modified a few bits, and added the BeebAsm directives at the end.... it's not perfect, but it does the job though :)

It's probably out of date with the latest version of BeebAsm, but you'll just need to add the new commands in at the end of the file.

Hope that helps :D

Author:  Samwise [ Fri Feb 11, 2011 11:50 pm ]
Post subject:  Re: .syn file for TExtPad

I've added some of the newer keywords and uploaded this BeebAsm syntax definition file for TextPad to the BeebAsm wiki page here, alongside a pair of similar files for Notepad++ provided by Stephen and Dave.

I think the TextPad file I uploaded is missing the extra 65C02 instruction set that BeebAsm now supports but I'm not 100% sure where they should go so, rather than get it wrong, I'll leave it to you to update it, Rich, if you so choose.

Sam.

UPDATE: After discovering you already provided a Notepad++ UDL File for BeebAsm, Rich, I've updated the wiki UDL file with a version that is based on your preferences, with a few additions by Dave.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/