projects
/
rrq
/
rrqforth.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various improvements
[rrq/rrqforth.git]
/
temp.asm
diff --git
a/temp.asm
b/temp.asm
index 9759f546eee4e62dbbbb1e6079f15ecac59d3b28..3425c1c53d34951f135750d5681c6ffb84ecbec0 100644
(file)
--- a/
temp.asm
+++ b/
temp.asm
@@
-7,9
+7,9
@@
WORD p_objectspace,'TEMPSPACE',dovariable
;; Holds size and address of the object space.
WORD p_objectspace,'TEMPSPACE',dovariable
;; Holds size and address of the object space.
- dq 104857600 ; Total object space size (request size)
- dq 0 ; Object space base address
- dq 0 ; Currently used.
+ dq 104857600 ;
[0]
Total object space size (request size)
+ dq 0 ;
[8]
Object space base address
+ dq 0 ;
[16]
Currently used.
WORD p_temp,'TEMP',fasm
;; ( size -- addr )
WORD p_temp,'TEMP',fasm
;; ( size -- addr )
@@
-40,11
+40,12
@@
p_objecthole_from_tail:
;; ( char* n -- char* n )
;; Capture a given [n:char*] string as a new temp object with
;; leading size cell.
;; ( char* n -- char* n )
;; Capture a given [n:char*] string as a new temp object with
;; leading size cell.
- dq p_dup, p_gtR ; size
- dq p_dup, p_temp
- dq p_dup, p_gtR ; address
+ dq p_dup, p_gtR ; ( -- char* n ) [ n ]
+ dq p_dup, p_literal, 8, p_plus ; ( -- char* n n+8 )
+ dq p_temp ; ( -- char* n addr )
+ dq p_dup, p_gtR ; ( -- char* n addr ) [ n addr ]
dq p_2dup, p_put
dq p_literal, 8, p_plus
dq p_swap, p_strncpy
dq p_2dup, p_put
dq p_literal, 8, p_plus
dq p_swap, p_strncpy
- dq p_Rgt, p_Rgt
, p_swap
+ dq p_Rgt, p_Rgt
dq p_exit
dq p_exit