drcjt / CSharp-80

C# AOT compiler for Z80 based computers including the TRS-80 and ZX Spectrum
https://drcjt.github.io/CSharp-80/
GNU General Public License v3.0
51 stars 3 forks source link

Implement arithmetic ovf.un opcodes, e.g. mul.ovf.un #11

Open drcjt opened 2 years ago

drcjt commented 2 years ago

Using variables in stack allocated array definitions e.g. stackalloc MyArray[size], requires mul.ovf.un in the calculation of the overall size to allocate.

drcjt commented 2 years ago

mul.ovf.un is now implemented - however note it does not throw exceptions as there is no exception support at all in csharp-80 currently.

There are over ovf and ovf.un opcodes that aren't currently implemented e.g.

add.ovf add.ovf.un mul.ovf sub.ovf sub.ovf.un