Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/src/MLRISC/x86/x86.md
ViewVC logotype

Diff of /sml/trunk/src/MLRISC/x86/x86.md

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 579, Wed Mar 22 06:33:08 2000 UTC revision 583, Thu Mar 23 21:52:30 2000 UTC
# Line 176  Line 176 
176    
177    end (* struct Instruction *)    end (* struct Instruction *)
178    
179      (*
180       * Instruction encoding on the x86
181       * Because of variable width instructions.
182       * We decompose each byte field into a seperate format first, then combine
183       * then to form the real instructions
184       *)
185      instruction formats 8 bits
186        modrm{mod:2, reg:3, rm:3}
187      | sib{ss:2, index:3, base:3}
188      | immed8{imm:8}
189    
190      instruction formats 32 bits
191        immed32{imm:32}
192    
193    (* A bunch of routines for emitting assembly *)    (* A bunch of routines for emitting assembly *)
194    functor Assembly    functor Assembly
195       (structure MemRegs : MEMORY_REGISTERS where I = Instr) =       (structure MemRegs : MEMORY_REGISTERS where I = Instr) =

Legend:
Removed from v.579  
changed lines
  Added in v.583

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0