Logo Search packages:      
Sourcecode: cbmlink version File versions  Download package

cbmlink.c File Reference


Detailed Description

The main program
Author:
Marko Mäkelä (msmakela@nic.funet.fi)

Definition in file cbmlink.c.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include "info.h"
#include "comm.h"
#include "commsel.h"
#include "mem.h"
#include "run.h"
#include "rdfile.h"
#include "wrfile.h"
#include "disk.h"
#include "qdisk.h"

Go to the source code of this file.

Defines

#define ALTJUMP   (addr + 18)
#define CARTRESET   (addr + 32)
#define DATE   "19.1.2003"
#define VERSION   "0.9.6"

Functions

static int disk_params (const char *cmd, unsigned *unit, unsigned *track, unsigned *track_end)
static int drive_image_read (const char *cmd, const char *filename)
static int drive_image_write (const char *cmd, const char *filename)
static int drive_memory_load (const char *cmd, const char *filename)
static int drive_memory_save (const char *cmd, const char *filename)
static int jump_cart (unsigned addr)
static int load_file (const char *cmd, const char *filename)
int main (int argc, char **argv)
static unsigned resolve_addr (const char *addr, char **endp)
static int save_file (const char *cmd, const char *filename)
static void sig (int num)

Variables

static unsigned bank = 0
static char buffer [65536]
static struct commcomm = 0
static unsigned device = 8
static struct hostinfohostinfo = 0
static unsigned interleave
static int secondary = -1


Generated by  Doxygen 1.6.0   Back to index