ktye / i

interpret
100 stars 16 forks source link

0+_240 is positive but 0+*_240 240 is negative #31

Open ktye opened 1 year ago

ktye commented 1 year ago

uptype is wrong for char atoms. maybe Kc should be:

func Kc(x int32) K { return K(0xff&uint32(x)) | K(ct)<<59 }
ktye commented 11 months ago

no. Kc is ok.

Flr needs sign extension of xp, e.g.

case 1:
return Kc(int32(int8(xp)))

but there is no such operation in the abstract machine