home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 February
/
CHIPCD_2_2000.iso
/
software
/
testsoft
/
anasil
/
_SETUP.1
/
DDP.DEC
< prev
next >
Wrap
Text File
|
1999-07-23
|
2KB
|
63 lines
; ************************************************************************
;
; Plik z definicjami dekodera ramek dla DDP (Appletalk)
;
; ************************************************************************
@aep.dec
;-----------------------------------------------------------
;
; Tablice translacji - linie maja format
; <liczba hex|liczba dec>,"tekst"
[# DDP_TYPE ]
Translate( 0x0001,"RTMP RD" )
Translate( 0x0002,"NBP" )
Translate( 0x0003,"ATP" )
Translate( 0x0004,"AEP" )
Translate( 0x0005,"RTMPR" )
Translate( 0x0006,"ZIP" )
Translate( 0x0007,"ADSP" )
;-----------------------------------------------------------
;
; Definicje fragmentow ramek
;
; Kazda linia ma nastepujacy format:
; Linia,Kolumna,Max.Szerokosc wartosci,Label,Format.Zmienna[,id tablicy translacji (tylko dla typow numerycznych)]
;
[$ DDP_FRAME_DEF ]
Layer( "DDP protocol header","DDP" )
Field( 1,0,5,"Hop count:","%d", Byte(0,2,7) )
Field( 2,0,5,"Length:","%d", RWord(0,0,9) )
Field( 3,0,5,"Checksum:","%04x", RWord(2) )
Field( 4,1,5,"Dest network:","%d", RWord(4) )
Field( 4,0,5,"Source network:","%d", RWord(6) )
Field( 5,1,5,"Dest node:","%d", Byte(8) )
Field( 5,0,5,"Source node:","%d", Byte(9) )
Field( 6,1,5,"Dest socket:","%d", Byte(10) )
Field( 6,0,5,"Source socket:","%d", Byte(11) )
Field( 8,0,5,"DDP Type:","%s", Byte(12), DDP_TYPE ) = DDP_TYPE_OFF
;-----------------------------------------------------------
;
; Sekcje komend
;
[^ DDP_Frame]
expand(DDP_FRAME_DEF)
TableJump( Byte(DDP_TYPE_OFF) )
; 0x0001, RTMPRD_Frame
; 0x0002, NBP_Frame
; 0x0003, ATP_Frame
0x0004, AEP_Frame
; 0x0005, RTMPR_Frame
; 0x0006, ZIP_Frame
; 0x0007, ADSP_Frame
TableEnd
goto( Undecoded )