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
0acbf881
Commit
0acbf881
authored
35 years ago
by
ch
Browse files
Options
Downloads
Patches
Plain Diff
Modified disassembler to use VM:OFFSET-INITIAL-SYMBOL.
parent
d8df7568
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/pmax-disassem.lisp
+4
-5
4 additions, 5 deletions
code/pmax-disassem.lisp
with
4 additions
and
5 deletions
code/pmax-disassem.lisp
+
4
−
5
View file @
0acbf881
;;; -*- Mode: Lisp; Package: MIPS -*-
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pmax-disassem.lisp,v 1.
9
1990/02/2
0 23:10:11
ch Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pmax-disassem.lisp,v 1.
10
1990/02/2
1 19:35:32
ch Exp $
;;;
;;; A simple dissambler for the MIPS R2000.
;;;
...
...
@@ -124,13 +124,12 @@
(
cond
((
and
(
zerop
rs
)
(
or
(
string=
name
"ADDI"
)
(
string=
name
"ADDIU"
)))
(
format
stream
"~16,8TLOADI~8,8T~A, #x~X~%"
(
register-name
rt
)
immed
))
;; I'm not proud of this ...
((
and
(
=
rs
c::null-offset
)
(
string=
name
"ADDI"
)
(
eq
register-name-style
:lisp
))
;; Major hack ...
(
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
)))
(
vm:offset-initial-symbol
immed
)))
(
t
(
format
stream
"~16,8T~A~8,8T~A, ~A, #x~X~%"
name
(
register-name
rt
)
(
register-name
rs
)
immed
)))))
...
...
@@ -234,7 +233,7 @@
name
(
register-name
rd
)
(
register-name
rt
)
(
register-name
rs
))))
(
def-mips-instruction-type
(
:break-type
)
(
let
((
code
(
ldb
(
byte
20
6
)
word
)))
;
sandro's adb
uses (byte 10 16)
(
let
((
code
(
ldb
(
byte
20
6
)
word
)))
;
MIPS assembler
uses (byte 10 16)
(
format
stream
"~16,8T~A~8,8T#x~X~%"
name
code
)))
(
def-mips-instruction-type
(
:syscall-type
)
...
...
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