Recent Posts
Recent Comments
- Dr. José M. Reyes Álamo on Submit Portfolio
- Dr. José M. Reyes Álamo on Home
- EugBabkin on Home
- pkursani on Submit Portfolio
- Mr WordPress on Hello world!
Microprocessor System Technology
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
You must be logged in to post a comment.
Proudly powered by WordPress and Carrington.
Our goal is to make the OpenLab accessible for all users.
Our goal is to make the OpenLab accessible for all users.
program decromanconvert;
#include(“stdlib.hhf”)
static
x:int32;
begin decromanconvert
stdout.put(“enter decimal value: “);
stdin.get(x);
mov(x,eax);
while(eax>0)do
if(eax>=100)then
stdout.put(“C”);
sub(100,eax);
elseif(eax>=99)then
stdout.put(“IC”);
sub(99,eax);
elseif(eax>=90)then
stdout.put(“XC”);
sub(90,eax);
elseif(eax>=50)then
stdout.put(“L”);
sub(50,eax);
elseif(eax>=49)then
stdout.put(“IL”);
sub(49,eax);
elseif(eax>=40)then
stdout.put(“XL”);
sub(40,eax);
elseif(eax>=10)then
stdout.put(“X”);
sub(10,eax);
elseif(eax>=5)then
stdout.put(“V”);
sub(5,eax);
elseif(eax>=4)then
stdout.put(“IV”);
sub(4,eax);
elseif(eax>=1)then
stdout.put(“I”);
sub(1,eax);
endif;
endwhile;
stdout.put(nl);
end decromanconvert;
Prof Alamo,
This is LAB#1 source code and every time i tried to run it there seems to be errors that no matter how much i try to locate them its impossible, i think it has to do with Ubundu installed on my computer. I spent almost all night going over it, no way its not working.
I am going to try to run the program from the lab in V building and see if it works.
Is this the proper place to send in labs or there is another way of sending them.
Thanks
Labs must be submitted using OpenLab but in your portfolio. The website has all the details you can also ask during class or stop by my office.