Skip to content

Commit

Permalink
Add a (hidden) 1770 BBC B model
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Nov 14, 2014
1 parent a3c48c4 commit 201cb4a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.js
Expand Up @@ -885,7 +885,7 @@ require(['jquery', 'utils', 'video', 'soundchip', 'debug', '6502', 'cmos', 'sth'
// Load the program immediately after the \xff of the "no program" has been
// written to PAGE+1
processor.debugwrite = function (addr, b) {
if (addr === (page + 1) && b == 0xff) {
if (addr === (page + 1) && b === 0xff) {
// Needed as the debug happens before the write takes place.
processor.debugInstruction = function () {
for (var i = 0; i < tokenised.length; ++i) {
Expand Down
8 changes: 5 additions & 3 deletions models.js
Expand Up @@ -22,18 +22,20 @@ define(['fdc'], function (fdc) {
false, false, false, false,
false, false, false, false];
var allModels = [
new Model("BBC B", ["B"], ["os.rom", "b/BASIC.ROM", "b/DFS-0.9.rom"], true, false, beebSwram, fdc.I8271),
new Model("BBC B", ["B"], ["os.rom", "BASIC.ROM", "b/DFS-0.9.rom"], true, false, beebSwram, fdc.I8271),
new Model("BBC B (1770)", ["B1770"], ["os.rom", "BASIC.ROM", "b1770/dfs1770.rom", "b1770/zADFS.ROM"],
true, false, beebSwram, fdc.WD1770),
new Model("BBC Master 128", ["Master"], ["master/mos3.20"], false, true, masterSwram, fdc.WD1770)
];

function findModel(name) {
name = name.toLowerCase();
for (var i = 0; i < allModels.length; ++i) {
var model = allModels[i];
if (model.name.toLowerCase() == name)
if (model.name.toLowerCase() === name)
return model;
for (var j = 0; j < model.synonyms.length; ++j) {
if (model.synonyms[j].toLowerCase() == name)
if (model.synonyms[j].toLowerCase() === name)
return model;
}
}
Expand Down
File renamed without changes.
Binary file removed roms/b/BASIC.ROM
Binary file not shown.
Binary file removed roms/b1770/BASIC.ROM
Binary file not shown.
Binary file removed roms/bp/BASIC.ROM
Binary file not shown.

0 comments on commit 201cb4a

Please sign in to comment.