In SX Microcontrollers, SX/B Compiler and SX-Key Tool, vinchi wrote: Hello! I dont know hove to make an constant array in SX/B? Something dont work. I am only strating with SX. [code] DEVICE SX52, OSC4MHZ ', TURBO, STACKX, OPTIONX FREQ 4_000_000 ' ========================================================================= PROGRAM Start ' ========================================================================= counter VAR byte LED VAR RD MASIVS VAR BYTE(8) MASIVS(0) = %00000001 MASIVS(1) = %00000010 MASIVS(2) = %00000100 MASIVS(3) = %00001000 MASIVS(4) = %00010000 MASIVS(5) = %00100000 MASIVS(6) = %01000000 MASIVS(7) = %10000000 Start: TRIS_A = %00000000 TRIS_B = %00000000 TRIS_C = %00000000 TRIS_D = %00000000 TRIS_E = %00000000 Main: FOR counter = 0 TO 7 LED = MASIVS(counter) PAUSE 1 NEXT GOTO START [/code] Is it possible to make constant array like in C? const char test[] = { 11111111b, 11111110b, 11111110b, 00000000b, 00000000b, 11111110b, 11111110b, 11111111b, 00000000b}; ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=93983 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)