mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-11-22 18:32:09 +00:00
added <m65/std.a> 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
This commit is contained in:
parent
c3e651f4ca
commit
28e196caab
13
ACME_Lib/m65/std.a
Normal file
13
ACME_Lib/m65/std.a
Normal file
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user