mirror of
https://github.com/livingcomputermuseum/UniBone.git
synced 2026-04-15 08:00:50 +00:00
Version 2019-06: many changes
PRU1 code split into multiple images 1. test functions 2. UNIBUS operation PRU1 bus latch interface Write byte/bits access not with MACROS (random optimizer influence), now with *_helper() procedures. Same timing, more determinism, much code saving. Nono more ASM code to write PRU0 XFER area. demo: menu to test UNIBUS signals directly rework "Arbitration" logic: now 3-fold Rework of UNIBUs arbtiration: NONE/CLIENT/MASTER - no Arbitrator (SACK penidng for 11/34 Konsole) (NONE) - phyiscal PDP_11 CPU is Arbitrator (CLIENT) - UniBone implements Arbitrator (MASTER) - Same PRU code loop handles all arbitration types PRU buslatch timing slower, for some problematic PCBs More aggressive bus latch selftest (mixed patterns, running on PRU now) Refinement of ready-to-run scripts - Adapted to changed "demo" menu - new name scheme <OS>_<boot- drive>_<PDP-11CPU> indicates - which OS is run - which disk emulation is used and what is the boot device - what is the (minimum) PDP-11 to run that Merged in Joshs DMA timing for 11/84 UNIBUS master cycles waits 350 us before MSYN, instead 150. Merged in Joshs DMA request queue multiple devices canrequest INTR and DMAs concurrently, will be put on the bus sequentially Merged in Joshs MSCP driver - Build RT-11v5.5 for MSCP - added boot loader "du.lst" MSCP run scrips 2.11BSD on MSCP on PDP-11/44 RT11 on MSCP Fix: image file sizing Disk image file exptend automatically if block beyond current file end is written
This commit is contained in:
@@ -45,7 +45,6 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include "logger.hpp"
|
||||
#include "main.h" // own
|
||||
#include "memoryimage.hpp" // own
|
||||
|
||||
// single multi purpose memory image buffer
|
||||
@@ -130,12 +129,10 @@ void memoryimage_c::put_byte(unsigned addr, unsigned b) {
|
||||
*/
|
||||
bool memoryimage_c::load_binary(const char *fname) {
|
||||
FILE *fin;
|
||||
char linebuff[1024];
|
||||
unsigned wordidx, n;
|
||||
fin = fopen(fname, "rb");
|
||||
if (!fin) {
|
||||
sprintf(linebuff, "Error opening file %s for read", fname);
|
||||
perror(linebuff);
|
||||
printf("%s\n",fileErrorText("Error opening file %s for read", fname));
|
||||
return false;
|
||||
}
|
||||
// try to read max address range, shorter files are OK
|
||||
@@ -148,13 +145,11 @@ bool memoryimage_c::load_binary(const char *fname) {
|
||||
|
||||
void memoryimage_c::save_binary(const char *fname, unsigned bytecount) {
|
||||
FILE *fout;
|
||||
char linebuff[1024];
|
||||
unsigned wordcount = (bytecount + 1) / 2;
|
||||
unsigned n;
|
||||
fout = fopen(fname, "wb");
|
||||
if (!fout) {
|
||||
sprintf(linebuff, "Error opening file %s for write", fname);
|
||||
perror(linebuff);
|
||||
printf("%s\n",fileErrorText("Error opening file %s for write", fname));
|
||||
return;
|
||||
}
|
||||
// try to read max address range, shorter files are OK
|
||||
@@ -209,8 +204,7 @@ bool memoryimage_c::load_addr_value_text(const char *fname) {
|
||||
|
||||
fin = fopen(fname, "r");
|
||||
if (!fin) {
|
||||
sprintf(linebuff, "Error opening file %s", fname);
|
||||
perror(linebuff);
|
||||
printf("%s\n", fileErrorText("Error opening file %s for write", fname)) ;
|
||||
return false;
|
||||
}
|
||||
entry_address = MEMORY_ADDRESS_INVALID; // not known
|
||||
@@ -446,8 +440,7 @@ bool memoryimage_c::load_macro11_listing(const char *fname, const char *entrylab
|
||||
|
||||
fin = fopen(fname, "r");
|
||||
if (!fin) {
|
||||
sprintf(linebuff, "Error opening file %s", fname);
|
||||
perror(linebuff);
|
||||
printf("%s\n", fileErrorText("Error opening file %s", fname));
|
||||
return false;
|
||||
}
|
||||
entry_address = MEMORY_ADDRESS_INVALID; // not (yet) known
|
||||
@@ -538,9 +531,7 @@ bool memoryimage_c::load_papertape(const char *fname) {
|
||||
|
||||
fin = fopen(fname, "r");
|
||||
if (!fin) {
|
||||
char buff[1024];
|
||||
sprintf(buff, "Error opening file %s", fname);
|
||||
perror(buff);
|
||||
printf("%s\n", fileErrorText("Error opening file %s for read", fname));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user