Avr Assembler scheme

Discussion Forums discussion Avr Assembler scheme

This topic contains 0 voices and has 2 replies.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
May 13, 2006 at 8:44 am #64

xyphro
Member

Hi!

I’ve modified the existing asm.scheme for Avr 8 Bit Risc processors. As I don’t have webspace to save it i’ll post it in this message:


[avrasm.scheme]—8<


8<


<?xml version=”1.0″ encoding=”UTF-8″?>

<Scheme>

<keyword-classes>

<keyword-class name=”avrinstruction”>

adc

add

adiw

and

andi

asr

bclr

bld

brbc

brbs

brcc

brcs

break

breq

brge

brhc

brhs

brid

brie

brlo

brlt

brmi

brne

brpl

brsh

brtc

brts

brvc

brvs

bset

bst

call

cbi

cbr

clc

clh

cli

cln

clr

cls

clt

clv

clz

com

cp

cpc

cpi

cpse

dec

elpm

eor

fmul

fmuls

fmulsu

icall

ijmp

in

inc

jmp

ld

ldd

ldi

lds

lpm

lsl

lsr

mov

movw

mul

muls

mulsu

neg

nop

or

ori

out

pop

push

rcall

ret

reti

rjmp

rol

ror

sbc

sbci

sbi

sbic

sbis

sbiw

sbr

sbrc

sbrs

sec

seh

sei

sen

ser

ses

set

sev

sez

sleep

spm

st

std

sts

sub

subi

swap

tst

wdr

</keyword-class>

<keyword-class name=”avrregister”>

r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17

r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31</keyword-class>

<!– # masm directives –>

<keyword-class name=”avrdirective”>

.byte .cseg .csegsize .db .def .device .dseg .dw .endm .endmacro

.equ .eseg .exit .include .list .listmac .macro .nolist .org .set

.else .elif .endif .if .ifdef .ifndef .message

.dd .dq .undef .warning .overlap .nooverlap</keyword-class>

</keyword-classes>

<language name=”avrasm” title=”AvrAssembler” folding=”false”>

<lexer name=”asm” />

<use-keywords>

<keyword key=”0″ name=”AvrInstructions” class=”avrinstruction”/>

<keyword key=”2″ name=”AvrRegisters” class=”avrregister”/>

<keyword key=”3″ name=”AvrDirectives” class=”avrdirective”/>

</use-keywords>

<use-styles>

<style name=”Default” key=”32″ fore=”#808080″ />

<style name=”Whitespace” key=”0″ />

<style name=”Comment” key=”1″ class=”comment” />

<style name=”Number” key=”2″ class=”number” />

<style name=”String” key=”3″ class=”string” />

<style name=”Operator” key=”4″ class=”operator” />

<style name=”Identifier” key=”5″ class=”identifier” />

<style name=”CPU instruction” key=”6″ class=”keyword” />

<style name=”AvrRegister” key=”8″ fore=”46aa03″ bold=”true” />

<style name=”AvrDirective” key=”9″ class=”keyword” />

<!– <style name=”Comment block (GNU as /*…*/ syntax, unimplemented)” key=”11″ $(colour.code.comment.box),$(font.code.comment.box) /> –>

<style name=”Single Quote String” key=”12″ class=”string” />

<style name=”Unclosed String” key=”13″ fore=”000000″ back=”E0C0E0″ eolfilled=”true” />

</use-styles>

</language>

</Scheme>


8<


8<


8<


May 28, 2006 at 9:27 am #14978

simon
Key Master

Thanks! Do you have some sample AVR assembler just so I can check it?

June 10, 2006 at 8:39 am #14979

xyphro
Member

Hi Simon!

You can download sample AVR assembler sourcecode in form of application notes from the Atmel site, for example:

http://www.atmel.com/dyn/resources/prod_documents/AVR910.zip

This zip Archive contains the file “at90isp_ver23.asm” which is pure avr assembler code.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.