Code covered by the BSD License  

Highlights from
Extended Brookshear Machine emulator and assembler

image thumbnail
from Extended Brookshear Machine emulator and assembler by David Young
Emulator and assembler for a simple computer, a teaching aid for computer science courses.

newbm
function machine = newbm
%NEWBM creates a new Brookshear machine
%   MACHINE = NEWBM returns a new Brookshear machine

%   Copyright 2008 University of Sussex and David Young

machine.register = zeros(1, 16, 'uint32');
machine.memory = zeros(1, 256, 'uint32');
machine.pc = 0;
machine.running = false;

end

Contact us at files@mathworks.com