| | |
new to assembly
![]() |
•
•
Join Date: Jan 2009
Posts: 62
Reputation:
Solved Threads: 0
hello everyone! i usually hang around the c++ area, but I'll need to learn assembly for computer architecture 2 in the fall so here it is. I wrote a simple program to convert temperatures from C to F. PCspim doesn't like it for some reason.
here are my codes, it just won't run.
here are my codes, it just won't run.
assembly Syntax (Toggle Plain Text)
.text .globl _start _start: la $a0, prompt li $v0, 4 syscall li $v0, 5 syscall mul $t0, $v0, 9 div $t0, $t0, 5 addi $t0, $t0, 32 la $a0, ans1 li $v0, 4 syscall move $a0, $t0 li $v0, 1 syscall la $a0, endl li $v0, 4 syscall li $v0, 10 syscall .data prompt: .asciiz "enter the temperature in celcius: " ans1: .asciiz "The temperature in F is: " endl: .asciiz "\n"
Last edited by homeryansta; Jun 26th, 2009 at 1:30 am.
![]() |
Similar Threads
- Questions about assembly and boolean algebra (Assembly)
- Assembly Programming Question (Assembly)
- How can i use inline assembly in VC++ editor (C++)
- Mips Assembly porting from C (Assembly)
- machine/assembly language, syntax error (C++)
- Using x86 Assembly Language with Microsoft Visual C++ (C++)
Other Threads in the Assembly Forum
- Previous Thread: Counting Letters in a File...
- Next Thread: Two code snippets that should have the same effect but don't
| Thread Tools | Search this Thread |






