Shop OBEX P1 Docs P2 Docs Learn Events
The DAT section and predefined data blocks ?? — Parallax Forums

The DAT section and predefined data blocks ??

AnubispodAnubispod Posts: 42
edited 2013-03-15 18:00 in Propeller 1
Hi i need to preset a lot of data and would like to write it to the DAT section like this
DAT
dmpUpdates byte         $01, $B2, $02, $FF, $FF,
                        $01, $90, $04, $09, $23, $A1, $35,
                        $01, $6A, $02, $06, $00,
                        $01, $60, $08, $00, $00, $00, $00, $00, $00, $00, $00,
                        $00, $60, $04, $40, $00, $00, $00,
                        $01, $62, $02, $00, $00,
                        $00, $60, $04, $00, $40, $00, $00

How is the right way to do it ??

This is a small sample of the data bocks i need so putting all in a line is out of oder :)
one block has 1500 byte

Best regards O.Rennfort

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2013-03-15 17:51
    One way would be to simply list them like you did (in the right format) e.g.
    DAT
    dmpUpdates      byte    $01, $B2, $02, $FF, $FF
                    byte    $01, $90, $04, $09, $23, $A1, $35
                    byte    $01, $6A, $02, $06, $00
                    byte    $01, $60, $08, $00, $00, $00, $00, $00, $00, $00, $00
                    byte    $00, $60, $04, $40, $00, $00, $00
                    byte    $01, $62, $02, $00, $00
                    byte    $00, $60, $04, $00, $40, $00, $00
    
    Would that be sufficient?
  • AnubispodAnubispod Posts: 42
    edited 2013-03-15 18:00
    yes perfect :) why didnt i figured that ;)
    Solved
Sign In or Register to comment.