Main Page | Class List | Directories | File List | Class Members | File Members

vm_disasm.c File Reference

CKPM virtual machine disassembler. More...

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "vm.h"
#include "vm_asm.h"

Functions

void vm_dump_instruction (int fd, struct instr_set_entry *e, int arg, int pc)
 this subroutine writes a disassembled instruction to stderr
void vm_disasm (int fd, int verbose, unsigned char *m, int start, int len)
 load a virtual machine executable
void vm_dump_data (int fd, char *s, int len)
 hexdump of data


Detailed Description

CKPM virtual machine disassembler.


Function Documentation

void vm_disasm int  fd,
int  verbose,
unsigned char *  m,
int  start,
int  len
 

load a virtual machine executable

Parameters:
fd a file descriptor index to an open file
verbose if != 0 this function will provide verbose output
m a pointer to the virtual machine memory
start the start address for disassembling
len the length of bytes to be disassembled

void vm_dump_data int  fd,
char *  s,
int  len
 

hexdump of data

Parameters:
fd a file descriptor index to an open file
s the pointer to the data area
len the length in bytes to be dumped

void vm_dump_instruction int  fd,
struct instr_set_entry e,
int  arg,
int  pc
 

this subroutine writes a disassembled instruction to stderr

Parameters:
fd a file descriptor index to an open file
e the pointer to the current instruction description
arg the argument value of the instruction
pc the actual program counter


Generated on Thu Jul 13 03:56:37 2006 for CKPMcc by  doxygen 1.4.4