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
1 answer

Why is the value for the instruction register 1106 for the load One instruction?

For this question: Trace the fetch-decode-execute cycle for the following program: 1 .org 100 2 Load One 3 JnS IncRoutine 4 Halt 5 IncRoutine , HEX 0 6 Add One 7 JumpI…
Jade
  • 1
  • 1
0
votes
0 answers

how to translate an if condition to marie's assembly?

I am being asked to write a code that multiply 2 inputs from the user in Marie's assembly . I did everything right except that in the question there is a condition in pseudocode that I cannot quite imply in my code .. if x =0 then x=x+3 which means…
0
votes
1 answer

How to shorten the code to convert information word to hamming code in MARIE

I have made a MARIE code that takes the input of 8 information bits and converts it to 12-bit hamming code. How to shorten this code? I am using the same XOR function for each parity bit with different value of each bit. I have first taken input for…
0
votes
0 answers

How to count bits using Marie assembly language?

I'm currently working a project where I use MARIE Assembly Language to create a version of Hamming code. My initial work has been to first have the user input the 8 bits for the data bits, and to then have the program output the correct 12-bit code…
giotto1
  • 49
  • 5
0
votes
0 answers

Label error in Mariesim, Any advice on how to fix it?

I am having an issue in Marie where it is saying that the error is " A label cannot have 0..9 as its beginning character". How would I go about fixing this? The image below is the section of code where this error appears. I have never seen this…
TK708
  • 11
  • 3
0
votes
1 answer

Instruction not recognized in MarieJS code

I have been doing this Marie code and it says it has three errors every time I try to assemble it. I'm unsure on how to go about fixing it. I have tried changing a bunch of things but I still end up with 3 or more errors. It is telling me…
TK708
  • 11
  • 3
0
votes
1 answer

MARIE Assembly if else

Struggle with MARIE Assembly. Needing to write a code that has x=3 and y=5, is x>y then it needs to output 1, if x
0
votes
1 answer

Trying to figure out how marie simulator works

I'm trying to figure out how to create a basic program in marie simulator, here's the pseudocode input A input B if A < B: x = A + B else: x = A - B after searching the internet, i come up with this INPUT store A INPUT store B if, load…
Ginko
  • 13
  • 4
0
votes
1 answer

MARIE: How to print a name

I got a question that wants the user to input a first name and a last name and then print it out. The question also wants me to print out a space between the first and last name as well, which I am having trouble figuring out how to do that. I have…
Bryan Hii
  • 129
  • 7
0
votes
1 answer

SKIPCOND in MARIE for looping or conditionals

I have to implement this pseudocode 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 the value of X; endwhile; Output the value of Y*2; So far, I have written…
0
votes
1 answer

Marie Simulator Multiplication of fractions

I have a task to use Marie Simulator to calculate the area of a circle requiring its radius I know that in Marie Language there is no multiplication operator so we use multiplication by adding numbers several times so If I wanted to multiply 2*3 I…
0
votes
0 answers

MARIE instructions for sum of numbers from a to b

I am new at MARIE simulator and I need to write a code that reads "a" and "b" from the user, and calculates the summation from "a" to "b" and outputs it. Can you please help me with this? This is what i have done but the output is not correct: ORG…
UserL00
  • 37
  • 1
  • 8
0
votes
0 answers

Wondering what exactly is wrong with this MARIE assembly code? (Calculator)

ORG 100 /Start Here INPUT Store X /Store 1st input value in X INPUT Store Y / Store 2nd input value in Y choice, INPUT Store C /Store choice in C if, Load C Subt A Skipcond 400 Jump elseif1 JnS ADDITION /Call subroutine Jump…
nail181
  • 11
  • 1
0
votes
1 answer

JnS with single MARIE Subroutine giving infinite loop

I'm trying to do a simple multiplication with Marie to do (a * b) * (c * d). I'm able to do it by making a new subroutine for every multiplication step, but I want to try and use JnS to just use a single subroutine. Heres my chunk of…
0
votes
1 answer

Why is my MARIE program addition becoming letters instead of numbers?

I am new to assembly and I'm not sure why my code isn't working. I'm inputing and displaying in ASCII format, I can see the 1 and 3, but why isn't the addition sum showing? My program is simply suppose to perform an addition. And display something…
Hello World
  • 191
  • 2
  • 9