Robert Swindells | 2 Aug 2008 14:41
Picon
Picon

Assembler patch


Add definition for RDMSR instruction.

Index: asm-x86.lisp
===================================================================
RCS file: /project/movitz/cvsroot/movitz/asm-x86.lisp,v
retrieving revision 1.38
diff -u -r1.38 asm-x86.lisp
--- asm-x86.lisp        12 Apr 2008 16:46:48 -0000      1.38
+++ asm-x86.lisp        2 Aug 2008 12:21:40 -0000
 <at>  <at>  -2029,6 +2029,11  <at>  <at> 
 (define-operator* (:16 :pushfw :32 :pushfl :64 :pushfr) ()
   (opcode #x9c))

+;;;;;;;;;;; RDMSR
+
+(define-operator/none :rdmsr ()
+  (opcode #x0f32))
+
 ;;;;;;;;;;; RDTSC

 (define-operator/none :rdtsc ()
Frode V. Fjeld | 6 Aug 2008 11:45
Picon
Picon
Favicon

Re: New assembler

Robert Swindells <rjs <at> fdy2.demon.co.uk> writes:

> How do you invoke the disassembler part of the new assembler ?
>
> I would like to find out whether some inline assembly code has turned
> out how I wanted.

The function x86:disassemble-proglist is the typical entry-point. It
takes a list of octets (of machine-code) as argument, primarily.

Also, in emacs, M-x movitz-disassemble-defun should display
disassembly of the current function.

--

-- 
Frode V. Fjeld


Gmane