Questions tagged [marie]

MARIE (Machine Architecture that is Really Intuitive and Easy) allows you to learn the essential concepts of computer organization and architecture, including assembly language, without getting caught up in the unnecessary and confusing details that exist in real architectures.

MARIE is a toy architecture for teaching / learning assembly language, with a very small instruction set (just load/store, add/sub, jump/jump-and-link, conditional execution of next instruction, and user input/output.) It's an accumulator machine with one 16-bit accumulator.

Resources:


Implementations:

91 questions
0
votes
0 answers

MARIE is not displaying the correct sum in the output window

I am currently working in the MARIE simulator, and I'm trying to edit the assembly code so that, although it still loops through the six given numbers for addition purposes (15, 25, 20, 30, 35, 10), it checks which of them are smaller than 22, and…
DavesNotHere
  • 13
  • 1
  • 4
0
votes
1 answer

How do I raise a number x to the power y in MARIE?

I'm trying to create a MARIE program that raises a number (x) to a power (y) and provides an output. I have tried many alterations of the idea I have in mind but I am still facing errors. The code below is the closest I have gotten to solving this…
Isaac Attuah
  • 119
  • 1
  • 11
0
votes
0 answers

How to write a subroutine for printing names on MARIE

Prepare a MARIE subroutine called printStringName that can print any name containing two ASCII ‘0’ terminated strings (using the “Output” instruction). Start by using a label “PrintName” that holds the start address of a name string (like, myNameAdd…
0
votes
1 answer

Marie simulator multiplication of three numbers

In Marie simulator, how would I multiply 3 positive numbers (Ex. 21 19 and 23) and store the result to a variable product using a loop? I'm new to Marie and can't figure this out. Thanks!
0
votes
1 answer

LoadI command is not recognized in MARIE simulator

I downloaded the MARIE simulator from a site that is no longer available and wrote a small program which just declares an array of hexadecimal numbers and then attempts to retrieve one of those numbers using the address. The problem is that the…
Stack Underflow
  • 2,363
  • 2
  • 26
  • 51
0
votes
2 answers

How can I get this MARIE program to work for negatives?

I wrote this program that will multiply two numbers together but now I need to make it work for negative numbers, anyone have any advice? org 100 Input a /first factor Store a /store first factor Input b /second factor Store b /store second…
user3003064
-1
votes
1 answer

To power of gives sometimes wrong answer

Whenever I run the program, input 2 for x 2 for y it will result 4 which is fine, but whenever I put in 2 to power of 3 it outputs 9 when it should output 8 and when I do 3 to power of 2 it outputs 8 when it should give 9. It works for 2^2, 2^4 but…
Dave
  • 1
  • 1
  • 9
  • 38
-1
votes
1 answer

How many bits are required to store MARIE's instruction set?

I know that MARIE's instruction set has 16-bit per instruction, given that there are 9 instructions, doesn't it make sense that 16*9 = 144bits are needed to store all of the instruction? But apparently its wrong, whats wrong with my reasoning and…
-1
votes
1 answer

Marie JS to the power of

I need to write a code for raising x to the power of y in Marie.js. That's what I have for now, however it spits out an error SyntaxError:L41 - Unknown label Loop. Input Subt One Store Count Input Store x Store y Jns Exp Load Wyn Output End,…
RoyBatty
  • 1
  • 2
-1
votes
1 answer

Optimize this multiply by repeated-addition code to loop the minimum number of times

This program uses a loop that multiplies two positive numbers by using repeated addition. I need help in optimizing the program in a way such that it would loop as least times as possible. For example, the program would only loop 3 times to…
-1
votes
1 answer

MARIE simulator: multiplication of two numbers using addition

multiplication of two numbers 6 and 3 by, repeatedly addition of 3 six times,using a loop that will add 3 six times and store the result into accumulator.
jatin
  • 41
  • 1
  • 1
  • 6
-1
votes
1 answer

Simple Assembly Language task

I'm reading the book: "The Essential of Computer Organization and Architecture, Linda Null and Julia Lobur". On chapter 4 page 172 it is a example how the assembly language work with instruction but I cannot understand it. I cannot understand…
-2
votes
1 answer

Assembly program (in MARIE), How to fill First and second pass?

I really did the sympol table and did fill it its easy but the code has many errors like Repeat is not vaild and values var1,var2 & res where no datatype for the HEX OR DEC etc.. so what to fill really confusing Click to see the problem Any help ?
-4
votes
1 answer

while statement in Marie assembly language

input a number and store it in x input a number and store it in y while x < 10 do x =x +1 output value of x; end while output the value of y*2
-4
votes
1 answer

MARIE assembly language program.that allow the user to input 8 numbers and find the smallest and the largest as output

Write, run, and test a MARIE assembly language program.The program should allow the user to input 8 numbers and find the smallest and the largest. The program should then print the smallest number and the largest number. Numbers are limited to…
Krixnaas
  • 71
  • 2
  • 13