Computing.Net > Forums > CPUs/Overclocking > Sparc Language, arrays

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Sparc Language, arrays

Reply to Message Icon

Original Message
Name: Liliya
Date: April 16, 2004 at 22:01:27 Pacific
Subject: Sparc Language, arrays
OS: unix
CPU/Ram: 220
Comment:

I'm trying to write command line input into an array. I understand I need to plug in a loop somewhere to do that but I'm not sure where. I'm new to the langusge. Could anybody advise me on this one? Here is the code I have at this point:
.global main
main:
save %sp,-96,%sp
set _iob,%l0 ! input pointer
set _iob,%l1 ! output pointer
mov %l0,%o0
call fgetc
nop ! fill delay slot
mov %o0,%l2

mov %l1,%o0
set line,%o1

mov %l2,%o2
call fprintf
nop

done:
mov 0,%l0
ret
restore

.section ".data"
line: .asciz " " ! 40 spaces


Report Offensive Message For Removal


Response Number 1
Name: Derk
Date: April 27, 2004 at 13:58:51 Pacific
Reply: (edit)

skdfsad;ljfklsadjfklsajfdl;

What does that have to do with CPU/Overclocking?


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to CPUs/Overclocking Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes Today.
Discuss in The Lounge
Poll History




Data Recovery Software