Hamish Ivey-Law 9480cbed99
Signed operations as syscalls (#933)
* Implement syscalls for BYTE, SIGNEXTEND, SAR, SLT and SGT.

* Implement SDIV and SMOD; minor documentation and tidying.

* Implement EXP.

* Add sys_byte to the syscall jumptable.

* Test suite for signed syscalls.

* Handle `EXIT_KERNEL` "properly".

* Add gas charges; rename label.

* Uppercase all opcodes.

* Add test for BYTE; fix bug in BYTE.

* Calculate and charge gas for calling `EXP`.

* Fix gas calculation for `exponent = 0`.

* Address Jacqui's comments.

* Remove BYTE syscall as it will be implemented natively.

* Oops, forgot to remove this bit.
2023-03-30 05:56:01 +11:00
..
2023-03-20 12:36:07 -07:00
2023-03-23 20:22:25 +01:00
2023-03-28 14:38:58 -06:00
2023-03-19 11:49:15 -07:00
2022-10-03 12:08:29 -07:00
2023-03-28 14:38:58 -06:00
2023-03-28 14:38:58 -06:00
fmt
2023-03-22 11:58:51 -07:00
2023-03-21 19:19:02 -07:00
2022-11-04 13:55:13 +01:00
2023-03-30 05:56:01 +11:00
2023-03-19 11:49:15 -07:00