short to byte

Hello, can anyone explain how in JavaCard is cast short to byte?
[71 byte] By [869770bzykua] at [2007-11-26 12:18:34]
# 1
Simple truncation (see the JCVM spec for the s2b bytecode).Note that:- The result may have a different sign- The result may have a different magnitudeFor example, the short value 255 (0x00ff) becomes the byte value -1 (0xff).
312986mkdataa at 2007-7-7 14:58:23 > top of Java-index,Archived Forums,Socket Programming...