From 28e196caabb5cd78c7c7bd04ee6fdc5e95cc8583 Mon Sep 17 00:00:00 2001 From: marcobaye Date: Fri, 19 Jun 2020 22:35:23 +0000 Subject: [PATCH] added to library, with macro to load 32-bit immediate constant git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@241 4df02467-bbd4-4a76-a152-e7ce94205b78 --- ACME_Lib/m65/std.a | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ACME_Lib/m65/std.a diff --git a/ACME_Lib/m65/std.a b/ACME_Lib/m65/std.a new file mode 100644 index 0000000..12e5206 --- /dev/null +++ b/ACME_Lib/m65/std.a @@ -0,0 +1,13 @@ +;ACME 0.96.5 + +!ifdef lib_m65_std_a !eof +lib_m65_std_a = 1 + + ; macro to load immediate constant: + !macro movq @v { + ; going from lsb to msb, so at least the N flag is correct: + lda #<@v + ldx #>@v + ldy #^@v + ldz #@v >>> 24 + }