DCPU-32 - Specification and Implementation

All discussions related to the DCPU and in game hardware (equipment, vehicles)

Re: DCPU-32 - Specification and Implementation

Postby Zardoz » Wed Jan 15, 2014 11:13 am

The Virtual computer have a Hardware Controller. But you keep falling in the same pitfall. A device (the Hardware controller) messing with the internal registers and states of the CPU. This cann't be allowed, and not happen in real world.
In real worl examples, you have a Hardware Controller (for example in PCI bus) that negotitate wiht the devices what address will be assigned for each deviced (and other resoruces), and gets a list of each device, but to talsk with the Hardware Controller you keep using a Memory Mapped I/O (or a Port Mapped I/O).

Really, avoid the HWx thing, only make more complex the CPU replacing something like : LOAD %r0, [HWQ_ADDR] by a HWQ %r0
Yep, I have a blog : http://zardoz.es
Emulator DCPU-16 VM
User avatar
Zardoz
 
Posts: 359
Joined: Mon Aug 12, 2013 8:54 pm
Location: Spain

Previous

Return to Hardware

Who is online

Users browsing this forum: No registered users and 20 guests

cron