Vhex-kernel/src/commands/where.c

17 lines
460 B
C
Raw Normal View History

#include <command.h>
#include <string.h>
// internal prototype.
static void where(int argc, char **argv, struct session_s *session, char *info);
// Define the command into the cache.
CMDBLOCK("where", &where, NULL);
/* where() - display the user postision in the Virtual Memory. */
static void where(int argc, char **argv, struct session_s *session, char *info)
{
(void)argc;
(void)argv;
sprintf(info, "%#x", session->anchor + (session->cursor << 1));
}