/[gxemul]/trunk/src/devices/dev_dec21030.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_dec21030.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 41 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_dec21030.c,v 1.6 2006/12/30 13:30:57 debug Exp $   *  $Id: dev_dec21030.c,v 1.7 2007/06/15 18:44:19 debug Exp $
29   *   *
30   *  DEC 21030 "tga" graphics.   *  COMMENT: DEC 21030 "TGA" graphics card
31   *   *
32   *  Resolutions that seem to be possible:  640x480, 1024x768, 1280x1024.   *  Resolutions that seem to be possible:  640x480, 1024x768, 1280x1024.
33   *  8 bits, perhaps others? (24 bit?)   *  8 bits, perhaps others? (24 bit?)
# Line 86  struct dec21030_data { Line 86  struct dec21030_data {
86  };  };
87    
88    
 /*  
  *  dev_dec21030_access():  
  */  
89  DEVICE_ACCESS(dec21030)  DEVICE_ACCESS(dec21030)
90  {  {
91          struct dec21030_data *d = extra;          struct dec21030_data *d = extra;
# Line 237  DEVINIT(dec21030) Line 234  DEVINIT(dec21030)
234  {  {
235          struct dec21030_data *d;          struct dec21030_data *d;
236    
237          d = malloc(sizeof(struct dec21030_data));          CHECK_ALLOCATION(d = malloc(sizeof(struct dec21030_data)));
         if (d == NULL) {  
                 fprintf(stderr, "out of memory\n");  
                 exit(1);  
         }  
238          memset(d, 0, sizeof(struct dec21030_data));          memset(d, 0, sizeof(struct dec21030_data));
239    
240          memory_device_register(devinit->machine->memory, devinit->name,          memory_device_register(devinit->machine->memory, devinit->name,

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26