Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
remko committed Aug 10, 2024
1 parent 3e300b8 commit 7394af6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/emuwasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ function generate() {
(local $val i32)
(local $mval i32)
;; Check PC and \`state\` ( https://wiki.xxiivv.com/site/varvara.html#system )
(if (i32.eqz (local.get $pc)) (then (return)))
(if (i32.load8_u (i32.const 0x${STATE_OFFSET.toString(
16
Expand Down
1 change: 1 addition & 0 deletions src/uxn.wat
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
(local $val i32)
(local $mval i32)

;; Check PC and `state` ( https://wiki.xxiivv.com/site/varvara.html#system )
(if (i32.eqz (local.get $pc)) (then (return)))
(if (i32.load8_u (i32.const 0x10020f)) (then (return)))

Expand Down

0 comments on commit 7394af6

Please sign in to comment.