Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Includes in ASM
#1
Is it possible to use assembler includes in the inline ASM code blocks
so the assembler can be broken down into files, e.g.

INCLUDE maths.asm

Also is it possible to include binary files in the assembler e.g.

BINARY 'test.bin'

Thanks
Reply
#2
Yes.
Includes within the asm are the same as includes in normal code: #include "file.asm"

Binary includes within an ASM context are possible using INCBIN directive. You have an example here:
https://github.com/boriel/zxbasic/blob/m...zx.bas#L19
Reply
#3
Thumbs Up 
boriel Wrote:Yes.
Includes within the asm are the same as includes in normal code: #include "file.asm"

Binary includes within an ASM context are possible using INCBIN directive. You have an example here:
https://github.com/boriel/zxbasic/blob/m...zx.bas#L19
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)