SuperH-based fx calculators
fx-CG20, expressions

legacy syscalls

syscall 0x128F : char*OpCodeToStr( const short opcode, const char*result );
Returns an OpCode's literal ASCII-representation in result.
The return-value happens to be result.

syscall 0x1291 : char*ExpressionToStr( const char*source, const char*result, int maxlen );
Concatenates an Expressions's literal ASCII-representation to result.
maxlen
is the capacity of result.
The return-value happens to be result.

syscall 0x184D : unsigned char*OpCodeStrPtr( int hcode, int lcode );
Returns the pointer to an OpCode's literal ASCII-representation.

hcode 0: single-byte OpCode
hcode 1: 0x7F-two-byte OpCode
hcode 2: 0xF7-two-byte OpCode
hcode 3: 0xF9-two-byte OpCode
hcode 4: 0xE5-two-byte OpCode
hcode 5: 0xE6-two-byte OpCode
hcode 6: 0xE7-two-byte OpCode

Example: OpCodeStrPtr( 0, 0x81 ) returns a pointer to "sin ".

Complete List

(29.07.2011 09:06:34)