Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
b7380bd5
Commit
b7380bd5
authored
35 years ago
by
ch
Browse files
Options
Downloads
Patches
Plain Diff
Fixed printing of MOVE pseudo-instruction.
Added ugly hack to print out a comment when loading symbol constants.
parent
176aaff9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/pmax-disassem.lisp
+9
-2
9 additions, 2 deletions
code/pmax-disassem.lisp
with
9 additions
and
2 deletions
code/pmax-disassem.lisp
+
9
−
2
View file @
b7380bd5
;;; -*- Mode: Lisp; Package: MIPS -*-
;;; -*- Mode: Lisp; Package: MIPS -*-
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pmax-disassem.lisp,v 1.
7
1990/02/18 0
5
:2
6:48 wlott
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pmax-disassem.lisp,v 1.
8
1990/02/18 0
6
:2
3:22 ch
Exp $
;;;
;;;
;;; A simple dissambler for the MIPS R2000.
;;; A simple dissambler for the MIPS R2000.
;;;
;;;
...
@@ -124,6 +124,13 @@
...
@@ -124,6 +124,13 @@
(
cond
((
and
(
zerop
rs
)
(
or
(
string=
name
"ADDI"
)
(
string=
name
"ADDIU"
)))
(
cond
((
and
(
zerop
rs
)
(
or
(
string=
name
"ADDI"
)
(
string=
name
"ADDIU"
)))
(
format
stream
"~16,8TLOADI~8,8T~A, #x~X~%"
(
format
stream
"~16,8TLOADI~8,8T~A, #x~X~%"
(
register-name
rt
)
immed
))
(
register-name
rt
)
immed
))
;; I'm not proud of this ...
((
and
(
=
rs
c::null-offset
)
(
string=
name
"ADDI"
)
(
eq
register-name-style
:lisp
))
(
format
stream
"~16,8T~A~8,8T~A, ~A, #x~X~48,8T; ~S~%"
name
(
register-name
rt
)
(
register-name
rs
)
immed
(
nth
(
1-
(
floor
immed
vm:symbol-size
))
vm:initial-symbols
)))
(
t
(
t
(
format
stream
"~16,8T~A~8,8T~A, ~A, #x~X~%"
(
format
stream
"~16,8T~A~8,8T~A, ~A, #x~X~%"
name
(
register-name
rt
)
(
register-name
rs
)
immed
)))))
name
(
register-name
rt
)
(
register-name
rs
)
immed
)))))
...
@@ -185,7 +192,7 @@
...
@@ -185,7 +192,7 @@
(
cond
((
zerop
rd
)
(
cond
((
zerop
rd
)
;; Hack for NOP
;; Hack for NOP
(
format
stream
"~16,8TNOP~%"
))
(
format
stream
"~16,8TNOP~%"
))
((
and
(
zerop
rt
)
(
or
(
string=
name
"OR"
)
(
string=
name
"A
N
DU"
)))
((
and
(
zerop
rt
)
(
or
(
string=
name
"OR"
)
(
string=
name
"A
D
DU"
)))
;; Hack for MOVE
;; Hack for MOVE
(
format
stream
"~16,8TMOVE~8,8T~A, ~A~%"
(
format
stream
"~16,8TMOVE~8,8T~A, ~A~%"
(
register-name
rd
)
(
register-name
rs
)))
(
register-name
rd
)
(
register-name
rs
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment