In SX Microcontrollers, SX/B Compiler and SX-Key Tool, John Kauffman wrote: [3]As I examine the program examples in the SX/B help, I see two ways of creating an ID for a program.[/3] [3] [/3] [3]In the template a DATA command creates a table with a single record:[/3] ' =================================================================== PROGRAM Start ' ==================================================================== Pgm_ID: DATA "SX/B Template", 0 ' -------------------------------------------------------------------- ' Subroutines / Jump Table ' ------------------------------------------------------------------- [3] [/3] [3]In the HIGH/LOW example an ID command is used:[/3] ' -------------------------------------------------------------------- ' Device Settings ' -------------------------------------------------------------------- DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX FREQ 4_000_000 ID "HIGH-LOW" [3] [/3] [3]Can anyone illuminate:[/3]
  • [3]Is there a fundamental difference in the techniques?[/3]
  • [3]Does the ID actually just invoke a DATA command?[/3]
  • [3]I can see that the DATA technique would then be retrieved using READ. What about the ID technique?[/3]
  • [3]Is one or the other more efficient?[/3]
  • [3]Which is considered best practice?[/3]
  • [3] [/3]
[3] [/3] [3]Much Thanks.[/3] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=146159 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)