2

I have this line of code:

asm
...

    jmp @jmp_data
        @s1: dw $1120,$1120,$1120,$4420,$0020,$0020,$0020,$1120,$1120,$1120,$4420,$0020,$0020,$0020,$1120,$1120,$1120,$4420,$0020,$0020,$0020,$1120,$1120,$1120,$4420,$0020,$0020,$0020;
        @jmp_data:
...
end:

But turbo Pacal gives error 11: Line too long.

so i tried to do this:

jmp @jmp_data
@s1: dw $1120,$1120,$1120,$4420,$0020,$0020,$0020,$1120,$1120,$1120,$4420,$0020,
$0020,$0020,$1120,$1120,$1120,$4420,$0020,$0020,$0020,$1120,$1120,$1120,$4420,$0020,$0020,$0020;
@jmp_data:

But gives Syntax error.

I searched in Google about this, but i found nothing.

So, how can write this code in Turbo pascal? It's have to be some way.

Thank...

exsnake
  • 1,767
  • 2
  • 23
  • 44

1 Answers1

4

Use several dw directives:

    @s1: dw $1120,$1120,$1120,$4420,$0020,$0020,$0020,$1120
         dw $1120,$1120,$4420,$0020,$0020,$0020,$1120,$1120
         dw $1120,$4420,$0020,$0020,$0020,$1120,$1120,$1120
         dw $4420,$0020,$0020,$0020
johnfound
  • 6,857
  • 4
  • 31
  • 60