Skip to content

Commit

Permalink
Fix for clisp compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
njm64 committed Feb 10, 2023
1 parent 14c9dee commit 2468418
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions decode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

(defun read-operand (operand-type)
(ecase operand-type
(#.+operand-type-word+ (fetch-u16))
(#.+operand-type-byte+ (fetch-u8))
(#.+operand-type-var+ (read-var (fetch-u8)))))
(0 (fetch-u16))
(1 (fetch-u8))
(2 (read-var (fetch-u8)))))

(defun decode-operand-types (b)
(loop for pos from 6 downto 0 by 2
Expand Down

0 comments on commit 2468418

Please sign in to comment.