#include <stdio.h>
#include <stdlib.h>

#include "kernel.h"
#include "Header.h"

#define IGNORE(p) (p=p)

/* Variable var1 is declared in assembler source. */
extern int var1;

/* Variable var2 is declared here but will be accessed from assembler source. */
int var2 = 0;

/* Assembler routine which will modify the values of the above variables. */
extern void Asm_Change_Vars( void );

_kernel_oserror * Module_Command( const char *arg_string, int argc, int cmd_no, void *pw )
{
        IGNORE( arg_string );
        IGNORE( argc );
        IGNORE( cmd_no );
        IGNORE( pw );

        printf( "var1 = %d\nvar2 = %d\n", var1, var2 );

        /* Call assembler routine to modify variable values. */
        Asm_Change_Vars();

        printf( "var1 = %d\nvar2 = %d\n", var1, var2 );

        return NULL;
}
