Previous Thread
Next Thread
Print Thread
#111246 - 11/09/17 02:33 PM Torch Graduate  
Joined: Apr 2012
Posts: 185
Pernod Offline
Senior Member
Pernod  Offline
Senior Member

Joined: Apr 2012
Posts: 185
UK
I've now got ROMs for the Torch Graduate device for the BBC Micro. I don't have schematics and the only info currently available is at http://chrisacorns.computinghistory.org.uk/8bit_Upgrades/Torch_Graduate.html. It's basically an IBM-PC with keyboard and video handled by the BBC. On the referenced page there's a link to a 'hires' image of the circuit board, it contains three ROMs. The 8088 is obviously the "bios" for the I8088, the 6502 "boot" is presented to the BBC on the 1MHz bus on pressing BREAK and transfers itself to the BBC to handle communication. I'm not sure about the ROM to the left of the I8088, my dump is labelled ibmz80 and contains 16 byte blocks of data. All ROMs are 8KB.

After looking through the rest of MAME for IBM-PC compatibles it looks like I should be using genpc.cpp as without any further info it contains all devices on the board and should be a known good implementation of the hardware. So what I have is:
Code
MCFG_CPU_ADD("maincpu", I8088, XTAL_15MHz / 3)
MCFG_CPU_PROGRAM_MAP(graduate_mem)
MCFG_CPU_IO_MAP(graduate_io)
MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE("mb:pic8259", pic8259_device, inta_cb)

MCFG_PCNOPPI_MOTHERBOARD_ADD("mb", "maincpu")

MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, nullptr, false)
MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, nullptr, false)

I'm using PCNOPPI for now as I'll add the 8255 separately. When run I get:
Code
Starting Torch Graduate ':1mhzbus:graduate'
Starting I8088 ':1mhzbus:graduate:maincpu'
Starting PCNOPPI_MOTHERBOARD ':1mhzbus:graduate:mb'
Starting Intel 8253 PIT ':1mhzbus:graduate:mb:pit8253'
Starting AM9517A ':1mhzbus:graduate:mb:dma8237'
Starting Intel 8259 PIC ':1mhzbus:graduate:mb:pic8259'
Starting 8-bit ISA bus ':1mhzbus:graduate:mb:isa'
Fatal error: assert: ../../../../../src/emu/dimemory.h:93: index >= 0 && index < int(m_addrspace.size()) && m_addrspace[index]

It's failing when looking for AS_IO space of "maincpu" to add the ISA mapping, but finding "maincpu" of the 6502 in bbcb. I tried changing the I8088 tag to something else but then complained of not finding required_device "maincpu". It looks like ibm5160_mb_device is hardcoded to require "maincpu" even though you specify it with MCFG_PCNOPPI_MOTHERBOARD_ADD("mb", "maincpu").
What are my options here?

I don't expect to get this 100% working until schematics are provided, but will be content for now with MS-DOS 2.11 booting on the PC side and the 6502 code being transferred and running on the BBC side.


BBC Micro
#111247 - 11/09/17 03:01 PM Re: Torch Graduate [Re: Pernod]  
Joined: May 2004
Posts: 832
Duke Online content
Senior Member
Duke  Online Content
Senior Member

Joined: May 2004
Posts: 832
Germany
Try MCFG_ISA8_CPU to set the cpu tag.

#111248 - 11/09/17 03:16 PM Re: Torch Graduate [Re: Duke]  
Joined: Apr 2012
Posts: 185
Pernod Offline
Senior Member
Pernod  Offline
Senior Member

Joined: Apr 2012
Posts: 185
UK
Originally Posted by Duke
Try MCFG_ISA8_CPU to set the cpu tag.

That would only work if ibm5160_mb_device was not hardcoded to require "maincpu". I didn't want to touch genpc.cpp but I guess it needs to actually use the tag provided in MCFG_PCNOPPI_MOTHERBOARD_ADD("mb", "i8088") and not use "maincpu" regardless.


BBC Micro
#111249 - 11/09/17 03:21 PM Re: Torch Graduate [Re: Pernod]  
Joined: Jan 2012
Posts: 688
crazyc Offline
Senior Member
crazyc  Offline
Senior Member

Joined: Jan 2012
Posts: 688
I was going to look at this but seems AJR just fixed it.

#111250 - 11/09/17 03:31 PM Re: Torch Graduate [Re: crazyc]  
Joined: Apr 2012
Posts: 185
Pernod Offline
Senior Member
Pernod  Offline
Senior Member

Joined: Apr 2012
Posts: 185
UK
Originally Posted by crazyc
I was going to look at this but seems AJR just fixed it.

Awesome, thanks AJR. Out of curiosity what does putting ":" or "^" in front of a tag mean?


BBC Micro
#111251 - 11/09/17 03:56 PM Re: Torch Graduate [Re: Pernod]  
Joined: Feb 2004
Posts: 1,864
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,864
Sydney, Australia
^ means relative to parent and : means relative to root


Who's Online Now
5 registered members (Luengo, Breiztiger, Duke, Dam0, sof-max), 18 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,436
Posts109,391
Members4,764
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.032s Queries: 15 (0.007s) Memory: 4.9686 MB (Peak: 5.1826 MB) Zlib enabled. Server Time: 2017-11-19 10:42:54 UTC