Machine code: Difference between revisions
Content added Content deleted
m (added a note on CFFI) |
No edit summary |
||
Line 19: | Line 19: | ||
=={{header|Common Lisp}}== |
=={{header|Common Lisp}}== |
||
<lang lisp>;; This uses the Clozure common lisp foreign function interface implementation (note that by using the 'CFFI' library, one can apply this procedure portably in any lisp implementation; |
<lang lisp>;; This uses the Clozure common lisp foreign function interface implementation (note that by using the 'CFFI' library, one can apply this procedure portably in any lisp implementation; |
||
;; in this code however I chose to demonstrate only the implementation-dependent program) |
|||
;; Allocate a memory pointer and poke the opcode into it |
;; Allocate a memory pointer and poke the opcode into it |
||
(defparameter ptr (ccl::malloc 9)) |
(defparameter ptr (ccl::malloc 9)) |