2003-04-16 12:35 PM
2003-04-11 07:07 AM
Hello,
I need to declare an array of 256 bytes in ROM with the st7 starter kit assembler. Why is the following code NOT working? segment 'rom' .LEDR DC.B $A6,$FF,$C7,$00,$00,$C7,$00,$01,$A6,$00,$C7,$00,$02,$A6,$FF,$C7,$00,$09,$A6,$FF,$C7,$00,$0A,$A6,$FF,$C7,$00,$11,$A6,$FF,$C7,$00 DC.B $12,$A6,$06,$C7,$00,$20,$A6,$FF,$95,$A6,$7F,$C7,$00,$2A,$CD,$C0,$36,$CD,$C0,$AB,$20,$FE,$5F,$90,$AE,$80,$5C,$CD,$C0,$44,$26,$FA DC.B $90,$5C,$26,$F6,$CD,$C0,$98,$1F,$00,$CD,$C0,$A1,$1E,$00,$CD,$C0,$A1,$1D,$00,$CD,$C0,$A1,$1C,$00,$CD,$C0,$A1,$1B,$00,$CD,$C0,$A1 DC.B $1A,$00,$CD,$C0,$A1,$19,$00,$CD,$C0,$A1,$18,$00,$CD,$C0,$A1,$17,$00,$CD,$C0,$A1,$16,$00,$CD,$C0,$A1,$15,$00,$CD,$C0,$A1,$14,$00 DC.B $CD,$C0,$A1,$13,$00,$CD,$C0,$A1,$12,$00,$CD,$C0,$A1,$11,$00,$CD,$C0,$A1,$10,$00,$CD,$C0,$A1,$81,$A6,$FF,$C7,$00,$08,$C7,$00,$10 DC.B $81,$4F,$AE,$FB,$5C,$26,$FD,$4C,$26,$F8,$81,$A6,$FF,$C7,$00,$00,$A6,$00,$C7,$00,$10,$C7,$00,$08,$81,$FF,$FF,$FF,$FF,$FF,$FF,$FF DC.B $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF DC.B $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF It compiles ok, but when I execute the code on my st7, the program is flipping! THIS works: LED DC.C $A5,$A4 (only 2 bytes) Please help tia2003-04-15 02:21 AM
Can anybody please tell me how to declare an array of 256 bytes in ROM with the KANDA starter kit assembler?
tia..2003-04-16 12:35 PM
problem solved!
I needed to declare the array UNDER the program code (before end) instead of right behind segment 'rom' greets