Vorrei chiedere una cosa agli esperti del forum,ho un problema,posto ad esempio un semplice esempio.
Quando mi stampa il risultato della somma o della differenza,non "rispetta" se è un tipo di valore o un altro,ad esempio x=3 e y=4 e la somma IADD da "g" che è 7 ,ma in un altro "alfabeto",come posso risolvere?
Grazie in anticipo
codice:
.constant
.end-constant

.main
.var
x
y
z
diff
.end-var
/////LAVORO///x///
BIPUSH 0x35
DUP
ISTORE x
OUT
//////////
BIPUSH 0x20
OUT
/////y/////
BIPUSH 0x32
DUP
ISTORE y
OUT
//////////
BIPUSH 0x20
OUT
/////z/////
BIPUSH 0x37
DUP
ISTORE z
OUT
////////////////////////////////
BIPUSH 0x0A
DUP
OUT
//////////
BIPUSH 0x0A    // A CAPO
DUP
OUT
//////////

//////////OPERAZIONI/////1/////
ILOAD x
ILOAD y
ISUB
ISTORE diff 
ILOAD diff
OUT
ILOAD z
IF_ICMPEQ l1
ILOAD x
ILOAD y
IADD 
OUT
GOTO fine
L1:
ILOAD x
ILOAD y
ISUB 
OUT
GOTO fine
fine:HALT
.end-main