packages.lisp 1.98 KB
Newer Older
Frode Vatvedt Fjeld's avatar
Frode Vatvedt Fjeld committed
1 2
;;;;------------------------------------------------------------------
;;;; 
3
;;;;    Copyright (C) 2000-2004,
4
;;;;    Department of Computer Science, University of Tromso, Norway
Frode Vatvedt Fjeld's avatar
Frode Vatvedt Fjeld committed
5 6 7 8 9 10 11
;;;; 
;;;; Filename:      packages.lisp
;;;; Description:   Operand representation.
;;;; Author:        Frode Vatvedt Fjeld <frodef@acm.org>
;;;; Created at:    Wed Feb 16 14:02:57 2000
;;;; Distribution:  See the accompanying file COPYING.
;;;;                
12
;;;; $Id: packages.lisp,v 1.3 2004/02/10 00:03:47 ffjeld Exp $
Frode Vatvedt Fjeld's avatar
Frode Vatvedt Fjeld committed
13 14 15
;;;;                
;;;;------------------------------------------------------------------

16
(in-package #:cl-user)
Frode Vatvedt Fjeld's avatar
Frode Vatvedt Fjeld committed
17

18 19
(defpackage #:ia-x86
  (:use #:common-lisp)
Frode Vatvedt Fjeld's avatar
Frode Vatvedt Fjeld committed
20 21 22
  (:export
   #:init-instruction-tables
   #:*cpu-mode*
23
   #:*instruction-compute-extra-prefix-map*
Frode Vatvedt Fjeld's avatar
Frode Vatvedt Fjeld committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
   #:decode-sub-stream
   #:decode-read-octet
   #:decode
   #:def-instr
   #:def-set
   ;; operands
   #:r/m8 
   #:r/m16 
   #:r/m32
   #:r8 
   #:r16 
   #:r32
   #:+r8 
   #:+r16 
   #:+r32
   #:pointer
   #:simm8 
   #:imm8 
   #:imm16 
   #:imm32
   #:rel8 
   #:rel16 
   #:rel32
   #:ptr16-16 
   #:ptr16-32
   #:al 
   #:ax 
   #:eax 
   #:cl 
   #:dx 
   #:sreg
   #:cs 
   #:ds 
   #:es 
   #:fs 
   #:gs 
   #:ss
   #:m32real 
   #:m64real 
   #:m80real 
   #:m16int 
   #:m32int
   ;; instruction class
   #:instruction
   #:instruction-operands
   #:instruction-prefixes
   ;; instruction prefixes
   #:lock 
   #:repne 
   #:repz
   #:cs-override 
   #:ds-override 
   #:es-override
   #:fs-override 
   #:gs-override 
   #:ss-override
   #:16-bit-operand
   #:16-bit-address
   #:*symtab-lookup*
   ;; proglist
   #:proglist-encode
   #:make-label
   ;; read
   #:read-instruction
   #:read-proglist
   #:asm
   ;; symtab
   #:symtab-lookup-label
   #:symtab-try-lookup-label
   ))

95 96 97
(defpackage #:ia-x86-instr
  (:use #:ia-x86)
  (:import-from #:common-lisp t nil defclass load eval compile)
Frode Vatvedt Fjeld's avatar
Frode Vatvedt Fjeld committed
98
  (:documentation
99
   "All the specialized classes for ia-x86 instructions are put into
Frode Vatvedt Fjeld's avatar
Frode Vatvedt Fjeld committed
100
this package, so that we may have instructions named 'and' etc."))