Show
Ignore:
Timestamp:
01/19/10 14:59:03 (2 years ago)
Author:
mwhitworth
Message:

Add other new files to SVN.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rtcg/trunk/src/asm_write.c

    r2079 r2081  
    22#include <stdlib.h> 
    33#include <string.h> 
     4#include <x86/modrm.h> 
    45 
    56#include "asm.h" 
     
    5556                                        offset+=5; 
    5657                                        break; 
     58 
     59                                case INSTR_SUB: 
     60                                        oInstr[1] = AsmMakeModRm(MOD_REG, instr->regDest, instr->regSrc); 
     61                                        oInstr[3] = instr->imSrc; 
     62                                        offset += 4; 
     63                                        break; 
    5764                                         
    5865                                case INSTR_NOP: 
     
    7380                                        exit(0); 
    7481                        } 
    75                          
    76 //                      printf("oInstr = %#X (%#X %#X)\n", oInstr, *(unsigned long*)oInstr, *(unsigned long*)(oInstr+4)); 
    7782                } 
    7883                 
    7984                curr=curr->next;         
    8085        } 
    81          
    82 //      printf("New code length has %d bytes\n", offset); 
    8386 
    8487        return offset;