1 |
/* |
/* |
2 |
* Copyright (C) 2005-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2005-2007 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_lpt.c,v 1.8 2006/02/09 20:02:59 debug Exp $ |
* $Id: dev_lpt.c,v 1.10 2006/12/30 13:30:58 debug Exp $ |
29 |
* |
* |
30 |
* LPT (parallel printer) controller. |
* LPT (parallel printer) controller. |
31 |
*/ |
*/ |
146 |
|
|
147 |
memory_device_register(devinit->machine->memory, name, devinit->addr, |
memory_device_register(devinit->machine->memory, name, devinit->addr, |
148 |
DEV_LPT_LENGTH, dev_lpt_access, d, DM_DEFAULT, NULL); |
DEV_LPT_LENGTH, dev_lpt_access, d, DM_DEFAULT, NULL); |
149 |
machine_add_tickfunction(devinit->machine, dev_lpt_tick, d, TICK_SHIFT); |
machine_add_tickfunction(devinit->machine, dev_lpt_tick, d, |
150 |
|
TICK_SHIFT, 0.0); |
151 |
|
|
152 |
/* |
/* |
153 |
* NOTE: Ugly cast into a pointer, because this is a convenient way |
* NOTE: Ugly cast into a pointer, because this is a convenient way |