Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 31st, 2005, 1:40 AM   #1
secrecy230
Newbie
 
Join Date: May 2005
Posts: 11
Rep Power: 0 secrecy230 is on a distinguished road
displaynumber greater than 127

i have created a program in ijvm which can display number but it display only still 127 how to make it display greater than 127.
ia hve to ake it display up to 2000000
secrecy230 is offline   Reply With Quote
Old Aug 6th, 2005, 7:05 PM   #2
teencoder
Hobbyist Programmer
 
teencoder's Avatar
 
Join Date: Jul 2005
Posts: 158
Rep Power: 0 teencoder is an unknown quantity at this point
I'm don't no assembly but perhaps you are only using 8bit 8=256 16=55536 32=27.2Million
__________________
Geeks may not be cool now but in the long run they prosper.
teencoder is offline   Reply With Quote
Old Aug 7th, 2005, 12:23 AM   #3
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 573
Rep Power: 5 Benoit is on a distinguished road
unsigned 8-bit integers range from 0 to 255
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote
Old Aug 7th, 2005, 10:57 AM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I took a cursory look at a single Googled page re IJVM. Some casual inferences seem to indicate that I/O is byte oriented and that textual material is ASCII-encoded. The upshot is that printing a value requires some common conversion efforts to interpret a multi-byte value as an integer and present it as a readable textual "number" comprising an appropriate number of characters.

You don't mention anything about a particular simulator/host or show any code. Perhaps there are built-in functions for this?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:59 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC