Skip to content
Snippets Groups Projects
Commit ae1f0b8c authored by wlott's avatar wlott
Browse files

Use ``lbu'' instead of ``lb'' to load the type byte. That way it won't get

sign extended.
parent a230c1b8
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC). ;;; Scott Fahlman (FAHLMAN@CMUC).
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/macros.lisp,v 1.24 1990/03/12 23:47:15 wlott Exp $ ;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/macros.lisp,v 1.25 1990/03/21 19:58:26 wlott Exp $
;;; ;;;
;;; This file contains various useful macros for generating MIPS code. ;;; This file contains various useful macros for generating MIPS code.
;;; ;;;
...@@ -114,9 +114,9 @@ ...@@ -114,9 +114,9 @@
(n-offset offset)) (n-offset offset))
(ecase vm:target-byte-order (ecase vm:target-byte-order
(:little-endian (:little-endian
`(inst lb ,n-target ,n-source ,n-offset )) `(inst lbu ,n-target ,n-source ,n-offset ))
(:big-endian (:big-endian
`(inst lb ,n-target ,n-source (+ ,n-offset 3)))))) `(inst lbu ,n-target ,n-source (+ ,n-offset 3))))))
;;; Macros to handle the fact that we cannot use the machine native call and ;;; Macros to handle the fact that we cannot use the machine native call and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment