- Timestamp:
- Jul 30, 2007, 3:11:26 AM (17 years ago)
- Location:
- trunk/abdev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_ProcOp.cpp
r251 r252 121 121 }; 122 122 123 memcpy(OpBuffer+obp,Buffer_allrem,178); 124 obp+=178; 123 compiler.codeGenerator.PutOld( NativeCode( (const char *)Buffer_allrem, 178 ) ); 125 124 } 126 125 else if( userProc.GetName() == "_aullrem" ){ … … 138 137 }; 139 138 140 memcpy(OpBuffer+obp,Buffer_aullrem,117); 141 obp+=117; 139 compiler.codeGenerator.PutOld( NativeCode( (const char *)Buffer_aullrem, 117 ) ); 142 140 } 143 141 else if( userProc.GetName() == "_allmul" ){ … … 147 145 }; 148 146 149 memcpy(OpBuffer+obp,Buffer_allmul,52); 150 obp+=52; 147 compiler.codeGenerator.PutOld( NativeCode( (const char *)Buffer_allmul, 52 ) ); 151 148 } 152 149 else if( userProc.GetName() == "_alldiv" ){ … … 156 153 }; 157 154 158 memcpy(OpBuffer+obp,Buffer_alldiv,170); 159 obp+=170; 155 compiler.codeGenerator.PutOld( NativeCode( (const char *)Buffer_alldiv, 170 ) ); 160 156 } 161 157 else if( userProc.GetName() == "_aulldiv" ){ … … 172 168 }; 173 169 174 memcpy(OpBuffer+obp,Buffer_aulldiv,104); 175 obp+=104; 170 compiler.codeGenerator.PutOld( NativeCode( (const char *)Buffer_aulldiv, 104 ) ); 176 171 } 177 172 else if( userProc.GetName() == "_allshl" ){ … … 181 176 }; 182 177 183 memcpy(OpBuffer+obp,Buffer_allshl,31); 184 obp+=31; 178 compiler.codeGenerator.PutOld( NativeCode( (const char *)Buffer_allshl, 31 ) ); 185 179 } 186 180 else if( userProc.GetName() == "_allshr" ){ … … 190 184 }; 191 185 192 memcpy(OpBuffer+obp,Buffer_allshr,33); 193 obp+=33; 186 compiler.codeGenerator.PutOld( NativeCode( (const char *)Buffer_allshr, 33 ) ); 194 187 } 195 188 else if( userProc.GetName() == "_aullshr" ){ … … 215 208 }; 216 209 217 memcpy(OpBuffer+obp,Buffer_aullshr,31); 218 obp+=31; 210 compiler.codeGenerator.PutOld( NativeCode( (const char *)Buffer_aullshr, 31 ) ); 219 211 } 220 212 else{ -
trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h
r251 r252 448 448 pNativeCode->Put( l, scheduleType ); 449 449 } 450 450 void PutOld( const NativeCode &nativeCode ) 451 { 452 pNativeCode->Put( nativeCode ); 453 } 451 454 void PutOld( char c1, char c2 ) 452 455 { -
trunk/abdev/BasicCompiler_Common/include/NativeCode.h
r250 r252 151 151 { 152 152 } 153 NativeCode( const char *codeBuffer, int size ) 154 : allocateSize( 8192 ) 155 , codeBuffer( (char *)malloc( allocateSize ) ) 156 , size( 0 ) 157 { 158 Put( codeBuffer, size ); 159 } 153 160 ~NativeCode() 154 161 {
Note:
See TracChangeset
for help on using the changeset viewer.