When I try to assemble this code:
%include "asm_io.inc" %define SIZE 100 ;#define SIZE 100 MOV SIZE, eax ;eax = SIZE CALL print_int, SIZE ;std::cout << eax
I commented the c++ equivelent of the asm code
I get this error:
error: binary format does not support external references
I assemble with a batch file i wrote:
@echo off cd "C:\Documents and Settings\tom\Desktop\nasm-2.05.01" nasm -f bin %1 -o %1.com cd "C:\Documents and Settings\tom\"
Can someone tell me why this error is appearing?