Previous 15994 Revisions Next

r3573 Wednesday 26th November, 2008 at 09:30:37 UTC by Miodrag Milanović
[HOMELAB] Enabled
[src/mess]mess.mak messdriv.c
[src/mess/drivers]homelab.c
[src/mess/video]homelab.c

src/mess/video/homelab.c
r3572r3573
1919{
2020   int x,y,j,b;
2121   UINT8 *gfx = memory_region(screen->machine, "gfx1");
22   const address_space *space = cpu_get_address_space(screen->machine->cpu[0], ADDRESS_SPACE_PROGRAM);
2223
2324   for(y = 0; y < 25; y++ )
2425   {
2526      for(x = 0; x < 40; x++ )
2627      {
27         int code = program_read_byte(0xc000+ x + y*40);     
28         int code = memory_read_byte(space,0xc000+ x + y*40);     
2829         for(j = 0; j < 8; j++ )
2930         {
3031            for(b = 0; b < 8; b++ )
r3572r3573
4142{
4243   int x,y,j,b;
4344   UINT8 *gfx = memory_region(screen->machine, "gfx1");
45const address_space *space = cpu_get_address_space(screen->machine->cpu[0], ADDRESS_SPACE_PROGRAM);
4446
4547   for(y = 0; y < 25; y++ )
4648   {
4749      for(x = 0; x < 80; x++ )
4850      {
49         int code = program_read_byte(0xf000+ x + y*80);     
51         int code = memory_read_byte(space, 0xf000+ x + y*80);     
5052         for(j = 0; j < 8; j++ )
5153         {
5254            for(b = 0; b < 8; b++ )
src/mess/messdriv.c
r3572r3573
999999//128u4   DRIVER( mikrosha )
10001000//128u4   DRIVER( partner )
10011001
1002  /* Homelab */ 
1003//128u4   DRIVER (homelab2)
1004//128u4   DRIVER (homelab3)
1005//128u4   DRIVER (homelab4)
1002     /* Homelab */ 
1003   DRIVER (homelab2)
1004   DRIVER (homelab3)
1005   DRIVER (homelab4)
10061006   
10071007   /* Irisha */
10081008   DRIVER (irisha)
src/mess/mess.mak
r3572r3573
377377   $(MESSOBJ)/ondra.a \
378378   $(MESSOBJ)/pk8020.a \
379379   $(MESSOBJ)/vector06.a \
380   $(MESSOBJ)/homelab.a \
380381   $(MESSOBJ)/shared.a \
381382
382383#   $(MESSOBJ)/acorn.a \
r3572r3573
422423#   $(MESSOBJ)/glasgow.a \
423424#   $(MESSOBJ)/gmaster.a \
424425#   $(MESSOBJ)/grundy.a \
425#   $(MESSOBJ)/homelab.a \
426426#   $(MESSOBJ)/hp48.a \
427427#   $(MESSOBJ)/intv.a \
428428#   $(MESSOBJ)/jupiter.a \
src/mess/drivers/homelab.c
r3572r3573
1919{
2020   UINT8 key_mask = (offset ^ 0xff) & 0xff;
2121   UINT8 key = 0xff;
22   if ((key_mask & 0x01)!=0) { key &= input_port_read(machine,"LINE0"); }
23   if ((key_mask & 0x02)!=0) { key &= input_port_read(machine,"LINE1"); }
24   if ((key_mask & 0x04)!=0) { key &= input_port_read(machine,"LINE2"); }
25   if ((key_mask & 0x08)!=0) { key &= input_port_read(machine,"LINE3"); }
26   if ((key_mask & 0x10)!=0) { key &= input_port_read(machine,"LINE4"); }
27   if ((key_mask & 0x20)!=0) { key &= input_port_read(machine,"LINE5"); }
28   if ((key_mask & 0x40)!=0) { key &= input_port_read(machine,"LINE6"); }
29   if ((key_mask & 0x80)!=0) { key &= input_port_read(machine,"LINE7"); }
22   if ((key_mask & 0x01)!=0) { key &= input_port_read(space->machine,"LINE0"); }
23   if ((key_mask & 0x02)!=0) { key &= input_port_read(space->machine,"LINE1"); }
24   if ((key_mask & 0x04)!=0) { key &= input_port_read(space->machine,"LINE2"); }
25   if ((key_mask & 0x08)!=0) { key &= input_port_read(space->machine,"LINE3"); }
26   if ((key_mask & 0x10)!=0) { key &= input_port_read(space->machine,"LINE4"); }
27   if ((key_mask & 0x20)!=0) { key &= input_port_read(space->machine,"LINE5"); }
28   if ((key_mask & 0x40)!=0) { key &= input_port_read(space->machine,"LINE6"); }
29   if ((key_mask & 0x80)!=0) { key &= input_port_read(space->machine,"LINE7"); }
3030   return key;
3131}
3232
r3572r3573
3838    AM_RANGE( 0x1800, 0x1fff ) AM_ROM  // ROM 4
3939    AM_RANGE( 0x2000, 0x27ff ) AM_ROM  // ROM 5
4040    AM_RANGE( 0x2800, 0x2fff ) AM_ROM  // ROM 6
41      AM_RANGE( 0x3000, 0x37ff ) AM_ROM  // Empty
42      AM_RANGE( 0x3800, 0x3fff ) AM_READWRITE(homelab_keyboard_r,homelab_keyboard_w)
41   AM_RANGE( 0x3000, 0x37ff ) AM_ROM  // Empty
42   AM_RANGE( 0x3800, 0x3fff ) AM_READWRITE(homelab_keyboard_r,homelab_keyboard_w)
4343    AM_RANGE( 0x4000, 0x7fff ) AM_RAM
4444    AM_RANGE( 0xc000, 0xc3ff ) AM_RAM AM_MIRROR(0x3c00) // Video RAM 1K   
4545ADDRESS_MAP_END

Previous 15994 Revisions Next


© 1998-2018 The MESS Team