Quote Originally Posted by MikeBZH View Post
The data will be bytes, but don't be afraid, I will not type then one by one !
They will come from already existing tables in text format. So a simple select, copy and paste to the source file will do the job.
Great! That'll make things easy.

Just one more suggestion then ...
Put the data in a separate .ASM file.
Code:
 ; make sure each line has an Even number of values.
  DB  0xA4,0x95,0xB5,0xAA,0xA5,0x49,0x55,0x56,0xAD,0x55,0x4A,0x56,0xB5,0xAA
  DB  0xAD,0x56,0xD6,0x48,0x49,0x5B,0x6A,0xB5,0x55,0x4A,0x4A,0xAD,0x6A,0xAA
  DB  0x94,0xAA,0xAA,0xB5,0x5A,0x54,0xAA,0xB5,0xAA,0xB5,0x55,0xAD,0x69,0x11
  DB  0x25,0xB6,0xB5,0x55,0x55,0x25,0x2A,0xDA,0xD5,0x4A,0x52,0xAA,0xAD,0x55
  ; ...
  DB  0x6A,0xA9,0x25,0x2A,0xD5,0x6A,0xAA,0x95,0x55,0xAD,0x55,0x55,0x55,0xAD
  DB  0x6D,0x44,0x12,0xAD,0xDA,0xAA,0xAA,0x52,0x55,0x5B,0x6A,0x94,0x94,0xAA
  DB  0xB5,0x5A,0xA9,0x52,0xAD,0x6B,0x55,0x55,0x55,0x5B,0x5B,0x50,0x82,0x5B
PBP has a limit to the number of lines in an ASM block.
That .ASM file can be included from the program by the assembler which doesn't have that limit.
Code:
DataByte   VAR  BYTE
Offset     VAR  LONG
DataTable1 CON  EXT
DataTable2 CON  EXT

'-----[The DATA table]--------------------------------------------------------
GOTO OverData             ; Make sure data doesn't try to execute
ASM
DataTable1
    #include "MyData.ASM"
EndTable1

DataTable2
    #include "MyOtherData.ASM"
EndTable2
ENDASM
OverData:

'-----[Retrieve from DATA table]----------------------------------------------
Offset = 1
ReadCODE  (DataTable1 + Offset), DataByte

LCDOUT  $FE, 1, HEX2 DataByte," "