X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=hw_spc2000.c;h=1e20f59c4ce8803aa9ed6dd706b0e8426e9629b2;hb=49be905f037fbd22b6ae0275efbab2ed95d4d9b7;hp=f07489578b1157e80842a8ac0d7027761395ed99;hpb=8b552fe61db48874f043bccfb589e5444509444c;p=dcpu16 diff --git a/hw_spc2000.c b/hw_spc2000.c index f074895..1e20f59 100644 --- a/hw_spc2000.c +++ b/hw_spc2000.c @@ -85,9 +85,9 @@ void spc2000_hwi_(struct dcpu16 *vm, struct dcpu16_hw *hw) { } } -static struct dcpu16_hw hw_ = { - .vm = NULL, +struct dcpu16_hw_module dcpu16_hw_module_spc2000 = { .name_ = "SPC2000 - Suspension Chamber 2000", + .id_l = 0x1d9d, .id_h = 0x40e4, .ver = 0x005e, @@ -96,11 +96,9 @@ static struct dcpu16_hw hw_ = { .hwi = spc2000_hwi_, .cycle = spc2000_cycle_, .reset = spc2000_reset_, - .data = (struct spc2000_ *)NULL -}; -struct dcpu16_hw_module dcpu16_hw_module_spc2000 = { - .template = &hw_, .data_init = spc2000_data_init_, .data_free = spc2000_data_free_, + .ctl = NULL, + .ctl_cmd = NULL, };