Find Jobs
Hire Freelancers

Little man computer basic

$10-30 USD

Fechado
Publicado há quase 7 anos

$10-30 USD

Pago na entrega
Programs must run on this simulator located at: [login to view URL] Write a LMC program that takes two inputs, a number to count down from, and the step value (example: count down from 35 by 5), until it reaches zero. It should print each step, and the last number before zero if the sequence doesn’t end on zero, but if the number goes to negative, that number should not be printed. Example output using 13 and 3 as inputs would be: 13, 10, 7, 4, 1. Example output using 12 and 3 as inputs would be: 12, 9, 6, 3, 0. Write the code to calculate the area and perimeter of a triangle. The program should take 3 inputs, which are, in order, the base, height, and the third side of the triangle. The code should produce 2 values in the output box, the first number will be the area and the second, the perimeter. (Hint: you’ll probably want to use DAT statements to store some values to start). Example code: Calculate perimeter & area - takes L & W as inputs prints out perimeter first, then area. 00 LDA #01; 01 STA 99; 02 IN; 03 STA 98; 04 LDA #00; 05 STA 96; 06 IN; 07 STA 97; 08 ADD 97; 09 ADD 98; 10 ADD 98; 11 OUT; 12 LDA 96; 13 ADD 98; 14 STA 96; 15 LDA 97; 16 SUB 99; 17 STA 97; 18 SKZ; 19 JMP 12; 20 LDA 96; 21 OUT; 22 HLT; MULTIPLIES TWO NUMBERS. 00 IN; 01 STA 99; 02 STA 97; 03 IN; 04 STA 98; 05 SUB 90; 06 STA 98; 07 SKZ; 08 JMP 12; 09 LDA 97; 10 OUT; 11 HLT; 12 LDA 97; 13 ADD 99; 14 STA 97; 15 LDA 98; 16 JMP 05; 90 DAT 001; ADDS THE FIRST NUMBER INPUT TO ITSELF, THEN SUBTRACTS THE SECOND INPUT FROM THE TOTAL 00 IN; 01 STA 90; 02 IN; 03 STA 91; 04 LDA 90; 05 ADD 90; 06 SUB 91; 07 OUT; 08 HLT; ONE WAY OF COUNTING FROM AN INPUT DOWN TO ZERO 00 IN; 01 OUT; 02 SUB 98; 03 SKP; 04 JMP 06; 05 JMP 01; 06 HLT; 98 DAT 002; SQUARING A NUMBER 00 IN; take input 01 STA 99; save value as a mulitiplier 02 STA 97; save value as multiplicand 03 SUB 90; subtract one from counter 04 STA 98; copy value to counter 05 LDA 97; load our accumulator number 06 ADD 99; Add original number 07 STA 97; store intermediate sum 08 LDA 98; Load counter 09 SUB 90; subtract one from counter 10 STA 98; Store counter value 11 SKZ; skip if counter is at zero 12 JMP 05; othewise, loop back to 5 13 LDA 97; load our squared number 14 OUT; Write output 15 HLT; stop 90 DAT 01; countdown value
ID do Projeto: 14064044

Sobre o projeto

8 propostas
Projeto remoto
Ativo há 7 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
8 freelancers estão ofertando em média $38 USD for esse trabalho
Avatar do Usuário
FREELANCER RECOMMENDED ------------------------------------------------------ Can help... I am an Expert... Lets Start! Please start a Discussion with me and we can get started from there... Please check the past projects I have handled and check my reviews for what employers have to say about my work... Can start right now...
$25 USD em 1 dia
4,8 (22 avaliações)
5,6
5,6
Avatar do Usuário
I am an expert in delivering custom softwares and scripts with a proven track record, ready to discuss further details
$25 USD em 1 dia
4,9 (21 avaliações)
5,5
5,5
Avatar do Usuário
A proposal has not yet been provided
$45 USD em 2 dias
4,9 (60 avaliações)
5,0
5,0
Avatar do Usuário
Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. Here is the reason. Why you should pick me? a) I am a very expert and have the same kind of experience of 5 years. b) I work very hard (16+ hours a day and 7 days a week) and also very fast so... it will be done very soon than most of the other providers c) And most important part is my policy: "I will give you (to my client) life time support (as long as you keep relation with me). And fix any bugs/problem without any cost. So, don't ever worry about me” Please sir, leave a reply ASAP, as I am waiting for your kind reply
$70 USD em 1 dia
5,0 (11 avaliações)
4,6
4,6
Avatar do Usuário
A proposal has not yet been provided
$30 USD em 2 dias
5,0 (14 avaliações)
3,7
3,7
Avatar do Usuário
A proposal has not yet been provided
$15 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hello Sir, We have gone through the details you have provided and we have already worked on a similar project before and can deliver as u have mentioned and would be pleased to work on this with you to deliver the results that you have expected and we have already worked on a similar project before and can deliver as u have mentioned We are sure you will not be disappointed if you give us this opportunity. Our team is experienced, creative & efficient enough to get your job done well. We have an impeccable record and all our clients enjoy working with us, we are sure that you will too, our prices are cheapest in market. [Removed for encouraging offsite communication which is against our Terms and Conditions.] for further discussion about the project I am ready to discuss with you with best Regards
$28 USD em 6 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have checked your requirements. We have right skills to work on this assignment. We are a team of professionals including experienced analysts, designers, project managers, developers and QA people having great expertise in web applications development mainly on core PHP, PHP with open sources (Joomla, Wordpress, Codeigniter, Cake PHP), .NET, Asp.NET, Vb.NET, HTML 5 etc. and mobile applications on ios and Android platform. Our award = superb result = happy client. In a good partnership, good results happen. Good cooking makes good eating!BWe consider our client as our partner. I am ready to discuss with you with best Regards
$25 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) INDIA
India
0,0
0
Membro desde mai. 18, 2017

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.