It is currently Mon Oct 20, 2014 4:01 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: .syn file for TExtPad
PostPosted: Thu Mar 26, 2009 3:51 pm 
Offline
 Profile

Joined: Thu Mar 26, 2009 3:49 pm
Posts: 3
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.


Top
 
PostPosted: Thu Mar 26, 2009 4:55 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
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


Top
 
PostPosted: Fri Feb 11, 2011 11:50 pm 
Offline
Site Admin
User avatar
 Profile

Joined: Wed Dec 19, 2007 10:46 pm
Posts: 779
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.


Last edited by Samwise on Sun Feb 13, 2011 1:24 pm, edited 1 time in total.
Added note that UDL File on wiki has been updated based on Rich's version


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron