Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

似乎不能内嵌汇编

Posted by Neuron at 2008-06-08 10:23:27 on Problem 1000
#include<stdio.h>

int main()
{
	int a,b;
	scanf("%d%d",&a,&b);
	asm
	("\
		movl %1, %%eax;\
		movl %2, %%ebx;\
		add %%eax, %%ebx;\
		movl %%ebx, %0"
		:"=r"(a)
		:"r"(a),"r"(b)
		:"%eax","%ebx"
	);
    printf("%d\n",a);
    return 0;
}


得了个CE |-.-

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator