| 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
|
Original Message
|
Name: Liliya
Date: April 16, 2004 at 22:01:27 Pacific
Subject: Sparc Language, arraysOS: unixCPU/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
|

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