View Single Post
  #1 (permalink)  
Old January 28th, 2007, 12:21 PM
kaycg kaycg is offline
Registered User
 
Join Date: Jan 2007
Location: Glasgow, , United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Integer I/O in assembly

This might sound like a stupid question but is there a way to output integer values just using assembly and linux system calls without having to use the printf command and by extension the c library functions.

This is part of a project at university and we would like to have assembly that performs calculations and gets a 32 bit integer result and then output that result to standard output. The project group would prefer to do it without having to link it with the c libraries.

If this can be done I'd appreciate it, some help on how to do it. If it can't be done I'd appreciate being told that too, and I'll just use printf.

Thanks in advance