home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / CHIPCD_2_2000.iso / software / testsoft / anasil / _SETUP.1 / DDP.DEC < prev    next >
Text File  |  1999-07-23  |  2KB  |  63 lines

  1. ; ************************************************************************
  2. ;
  3. ; Plik z definicjami dekodera ramek dla DDP (Appletalk)
  4. ;
  5. ; ************************************************************************
  6.  
  7. @aep.dec
  8.  
  9. ;-----------------------------------------------------------
  10. ;
  11. ;  Tablice translacji - linie maja format
  12. ;   <liczba hex|liczba dec>,"tekst"
  13.  
  14.  
  15. [# DDP_TYPE ]
  16.    Translate( 0x0001,"RTMP RD" )
  17.    Translate( 0x0002,"NBP" )
  18.    Translate( 0x0003,"ATP" )
  19.    Translate( 0x0004,"AEP" )
  20.    Translate( 0x0005,"RTMPR" )
  21.    Translate( 0x0006,"ZIP" )
  22.    Translate( 0x0007,"ADSP" )
  23.  
  24. ;-----------------------------------------------------------
  25. ;
  26. ;  Definicje fragmentow ramek
  27. ;
  28. ;  Kazda linia ma nastepujacy format:
  29. ;    Linia,Kolumna,Max.Szerokosc wartosci,Label,Format.Zmienna[,id tablicy translacji (tylko dla typow numerycznych)]
  30. ;
  31.  
  32. [$ DDP_FRAME_DEF ]
  33.   Layer( "DDP protocol header","DDP" )
  34.   Field( 1,0,5,"Hop count:","%d", Byte(0,2,7) )
  35.   Field( 2,0,5,"Length:","%d", RWord(0,0,9) )
  36.   Field( 3,0,5,"Checksum:","%04x", RWord(2) )
  37.   Field( 4,1,5,"Dest network:","%d", RWord(4) )
  38.   Field( 4,0,5,"Source network:","%d", RWord(6) )
  39.   Field( 5,1,5,"Dest node:","%d", Byte(8) )
  40.   Field( 5,0,5,"Source node:","%d", Byte(9) )
  41.   Field( 6,1,5,"Dest socket:","%d", Byte(10) )
  42.   Field( 6,0,5,"Source socket:","%d", Byte(11) )
  43.   Field( 8,0,5,"DDP Type:","%s", Byte(12), DDP_TYPE ) = DDP_TYPE_OFF
  44.  
  45. ;-----------------------------------------------------------
  46. ;
  47. ;  Sekcje komend
  48. ;
  49.  
  50. [^ DDP_Frame]
  51. expand(DDP_FRAME_DEF)
  52. TableJump( Byte(DDP_TYPE_OFF) )
  53. ;   0x0001, RTMPRD_Frame
  54. ;   0x0002, NBP_Frame
  55. ;   0x0003, ATP_Frame
  56.    0x0004, AEP_Frame
  57. ;   0x0005, RTMPR_Frame
  58. ;   0x0006, ZIP_Frame
  59. ;   0x0007, ADSP_Frame
  60. TableEnd
  61. goto( Undecoded )
  62.  
  63.