![]() |
Includes in ASM - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: How-To & Tutorials (https://www.boriel.com/forum/forumdisplay.php?fid=13) +---- Thread: Includes in ASM (/showthread.php?tid=2549) |
Includes in ASM - bracckets - 03-27-2024 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 - 03-28-2024 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 - 04-04-2024 boriel Wrote:Yes. |