extern fprintf extern fopen section .data write_char db 'w', 0 filetest: dd "filetest.txt",0 msg1: db "the int is %d",10,0 msg2: db "the float is %e",10,0 float_num: dd 242334.4342 SECTION .bss file_open_int:resb 4 section .text global main main: push dword write_char push dword filetest call fopen add esp,8 cmp eax, 0 je Exit mov [file_open_int], eax mov ebx, 101231 push ebx push dword msg1 push dword [file_open_int] call fprintf add esp, byte 12 fld dword [float_num] sub esp, 8 fstp qword [esp] push dword msg2 push dword [file_open_int] call fprintf add esp, byte 16 Exit: