mirror of
https://github.com/open-goal/jak-project
synced 2026-07-04 13:30:41 -04:00
17 lines
303 B
Common Lisp
17 lines
303 B
Common Lisp
;-*-Scheme-*-
|
|
|
|
;; add two constants together.
|
|
(test-setup 13 #f)
|
|
|
|
(let* ((base-addr #x6000000)
|
|
(ptr-int32 (the (pointer int32) base-addr))
|
|
(ptr-int16 (the (pointer int16) base-addr))
|
|
)
|
|
(set! (-> ptr-int32 1) #x00070006)
|
|
(+ (-> ptr-int16 2)
|
|
(-> ptr-int16 3)
|
|
)
|
|
)
|
|
|
|
|