jak-project/goal_src/test/test-memcpy.gc
water111 27b865c0df
Add methods and pointers (#53)
* method calls and sorting

* add more tests and fix some alias stuff
2020-09-19 16:50:42 -04:00

12 lines
290 B
Common Lisp

(let* ((base-addr #x6000000)
(offset #x123)
(ptr-int32 (the (pointer int32) base-addr))
(ptr-int16 (the (pointer int16) #x6000123))
)
(set! (-> ptr-int32 1) #x00070006)
(mem-copy! ptr-int16 ptr-int32 8)
(+ (-> ptr-int16 2)
(-> ptr-int16 3)
)
)