![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2005
Posts: 11
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Jul 2005
Posts: 158
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 573
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|