help with jasmin program

hey friends
i am new to jasmin program iam trying to Create a Jasmin program to read in two 1 digit integers (using i need to convert the ASCII digit to its value. Add the two integers and print the result. can any one can show me how to convert ascii digit to its value ,,here what i start with
.class public Hw3_7
.super java/lang/Object

.method public static main([Ljava/lang/String;)V
.limit stack 10 ; up to two items can be pushed
.limit locals 10 ; local variables include parms

getstatic java/lang/System/in Ljava/io/InputStream;
invokevirtual java/io/InputStream/read()I

getstatic java/lang/System/out Ljava/io/PrintStream;
invokevirtual java/io/PrintStream/println(I)V
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!