Boriel Basic Forum
Includes in ASM - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: How-To & Tutorials (https://forum.boriel.com/forumdisplay.php?fid=13)
+---- Thread: Includes in ASM (/showthread.php?tid=2549)



Includes in ASM - bracckets - 2024-03-27

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


RE: Includes in ASM - boriel - 2024-03-28

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/master/examples/printfzx.bas#L19


RE: Includes in ASM - bracckets - 2024-04-04

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/master/examples/printfzx.bas#L19