added CFA>FLAGS@ helper
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Mon, 24 May 2021 11:20:00 +0000 (21:20 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Mon, 24 May 2021 11:20:00 +0000 (21:20 +1000)
memory.asm

index 64f54bce09e24d698485b61b2d62ad97677d122e..171ac487c8a19b40a533c51a1e62e2b5dd73c740 100644 (file)
@@ -1,5 +1,12 @@
 ;;; This file defines "memory access words"
 
+       WORD p_cfa2flags_get,'CFA>FLAGS@',fasm
+       ;; ( cfa -- flags )
+       pop rax
+       cfa2tfa rax
+       push qword[rax+16]
+       next
+
        WORD p_tfa2cfa,'TFA>CFA',fasm
        ;; ( tfa -- cfa )
        ;; Advance a word tfa pointer to the cfa field