/*------------------------------------------------------------------------ * main -- user main program *------------------------------------------------------------------------ */ int main() { //syscallsummary_start(); kprintf("\n\nHello World, Xinu lives\n"); long param = 0xaabbccdd; getpid(); kprintf("\nBefore : 0x%08x",param); kprintf("\nAfter : 0x%08x",zfunction(param)); printsegaddress(); asm("movl %esp,ebp_i"); kprintf("\n<0x%08x><0x%08x>",ebp_i,*ebp_i); printtos(); printprocstks(100); printsyscalls(); return 0; }
int main() { int mask; kprintf("\n\nHello World, Xinu lives\n\n"); kprintf("\n Enter input:"); long input; scanf("%08x", &input); kprintf("\n The input is %08x",input); long output=zfunction(input); kprintf("\n The output is %08x",output); printsegaddress(); kprintf("\n Enter mask:"); scanf("%d",&mask); kprintf("\n The mask in int is %d and hex is 0x%08x",mask,mask); printtos(mask); int prA(); syscallsummary_start(); resume(create(prA, 200, 25, "Proc11", 1, 1)); getpid(); syscallsummary_stop(); printprocstks(5,25); printsyscalls(); return 0; }