From dc948f592ad4dd37f0349c4faa12e30eb00aa158 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 9 May 2012 01:34:43 +0000 Subject: improve prog dump, move hardware registration out of device module --- dcpu16.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'dcpu16.h') diff --git a/dcpu16.h b/dcpu16.h index 0194f46..5f8b5ad 100644 --- a/dcpu16.h +++ b/dcpu16.h @@ -52,8 +52,9 @@ struct context { unsigned int version; unsigned int manu; void (*cb)(struct context *); - } dev[256]; + } dev[MEMSZ]; int ndev; + int proglen; }; /* display: 32x12 (128x96) + 16 pixel boarder, font 8x4 */ @@ -63,8 +64,9 @@ int step(struct context *); void tuiemu(struct context *); void guiemu(struct context *); void dumpcode(struct context *); -void register_lem(struct context *); -void register_keyb(struct context *); -void register_clk(struct context *); + +void lem(struct context *); +void keyb(struct context *); +void clk(struct context *); #endif -- cgit v1.2.3