Skip to content

Commit

Permalink
remove assumptions about underlying buffer; client supplies getD[14]
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Piumarta committed Oct 28, 2011
1 parent d88085c commit 751e451
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dsm-x86.k
Expand Up @@ -67,13 +67,8 @@
(port-write p (nth (mrm-reg mrm) ops)"\t$"(getL d)",")
(mrm-write p mrm sib dsp)))

(define-function jb (d p op)
(let ((dsp (getB d)))
(port-write p op"\t0x"(format "%08x" (+ dsp (data-stream-address d))))))

(define-function jv (d p op)
(let ((dsp (getL d)))
(port-write p op"\t0x"(format "%08x" (+ dsp (data-stream-address d))))))
(define-function jb (d p op) (port-write p op"\t"(getD1 d)))
(define-function jv (d p op) (port-write p op"\t"(getD4 d)))

(define-function disassemble-on (d p)
(let ((b0 (getB d)))
Expand Down

0 comments on commit 751e451

Please sign in to comment.