What I am attempting is to compare 2 numbers in assembly language and display the largest of the two numbers, as shown in the pseudo code below.
I am using this website here to do this http://www.peterhigginson.co.uk/RISC/
Here is what I am came up with:
INP R0,2
INP R1,2
CMP R0,R1
BGT OUT R0,4
BLT OUT R1,4
However I am getting the error 'bad parameter at line 3 BGT'.
I am not sure why I am getting this however I suspect it may be something to do either with indentations or not including a loop or something.
Any help on how to solve this would be much appreciated. Here is the instruction set if anyone is interested. http://www.peterhigginson.co.uk/RISC/instruction_set.pdf