@@ -281,11 +281,13 @@ void asm_x64_push_i32(asm_x64_t *as, int src_i32) {
281281}
282282*/
283283
284+ /*
284285void asm_x64_push_disp(asm_x64_t *as, int src_r64, int src_offset) {
285286 assert(src_r64 < 8);
286287 asm_x64_write_byte_1(as, OPCODE_PUSH_M64);
287288 asm_x64_write_r64_disp(as, 6, src_r64, src_offset);
288289}
290+ */
289291
290292void asm_x64_pop_r64 (asm_x64_t * as , int dest_r64 ) {
291293 if (dest_r64 < 8 ) {
@@ -357,18 +359,20 @@ void asm_x64_mov_mem64_to_r64(asm_x64_t *as, int src_r64, int src_disp, int dest
357359 asm_x64_write_r64_disp (as , dest_r64 , src_r64 , src_disp );
358360}
359361
360- void asm_x64_lea_disp_to_r64 (asm_x64_t * as , int src_r64 , int src_disp , int dest_r64 ) {
362+ STATIC void asm_x64_lea_disp_to_r64 (asm_x64_t * as , int src_r64 , int src_disp , int dest_r64 ) {
361363 // use REX prefix for 64 bit operation
362364 assert (src_r64 < 8 );
363365 assert (dest_r64 < 8 );
364366 asm_x64_write_byte_2 (as , REX_PREFIX | REX_W , OPCODE_LEA_MEM_TO_R64 );
365367 asm_x64_write_r64_disp (as , dest_r64 , src_r64 , src_disp );
366368}
367369
370+ /*
368371void asm_x64_mov_i8_to_r8(asm_x64_t *as, int src_i8, int dest_r64) {
369372 assert(dest_r64 < 8);
370373 asm_x64_write_byte_2(as, OPCODE_MOV_I8_TO_R8 | dest_r64, src_i8);
371374}
375+ */
372376
373377STATIC void asm_x64_mov_i32_to_r64 (asm_x64_t * as , int src_i32 , int dest_r64 ) {
374378 // cpu defaults to i32 to r64, with zero extension
0 commit comments